| | |
| | | import com.ruoyi.common.core.web.controller.BaseController; |
| | | import com.ruoyi.common.core.web.page.TableDataInfo; |
| | | import com.ruoyi.common.security.service.TokenService; |
| | | import com.ruoyi.other.api.domain.Technician; |
| | | import com.ruoyi.other.api.domain.TechnicianScore; |
| | | import com.ruoyi.other.service.TechnicianScoreService; |
| | | import com.ruoyi.other.service.TechnicianService; |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/technician") |
| | | @Api(tags = "技师") |
| | | @Api("技师") |
| | | public class TechnicianController extends BaseController { |
| | | @Resource |
| | | private TechnicianService technicianService; |
| | |
| | | */ |
| | | @GetMapping("/technicianListByShopId") |
| | | @ApiOperation(value = "技师列表", tags = {"技师列表-小程序"}) |
| | | public R<TableDataInfo<TechnicianVO>> technicianListByShopId(@ApiParam("门店id") @RequestParam Long shopId) { |
| | | public R<TableDataInfo<TechnicianVO>> technicianListByShopId(@ApiParam("门店id") @RequestParam Long shopId,@ApiParam("技师姓名") String name) { |
| | | startPage(); |
| | | return R.ok(getDataTable(technicianService.getTechnicianListByShopId(shopId))); |
| | | return R.ok(getDataTable(technicianService.getTechnicianListByShopId(shopId,name))); |
| | | } |
| | | |
| | | @GetMapping("/getById") |
| | | @ApiOperation(value = "技师详情", tags = {"技师详情-小程序"}) |
| | | public R<Technician> getById(@RequestParam("id") Integer id){ |
| | | Technician byId = technicianService.getById(id); |
| | | return R.ok(byId); |
| | | } |
| | | |
| | | /** |