| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/banner") |
| | | @Api(tags = "轮播图") |
| | | @Api("轮播图") |
| | | public class BannerController { |
| | | @Resource |
| | | private BannerService bannerService; |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/goods") |
| | | @Api(tags = "商品") |
| | | @Api("商品") |
| | | public class GoodsController extends BaseController { |
| | | @Resource |
| | | private GoodsService goodsService; |
| | |
| | | * @author luodangjia |
| | | * @since 2024-11-20 |
| | | */ |
| | | @Api(tags = "分享") |
| | | @Api("分享") |
| | | @RestController |
| | | @RequestMapping("/share") |
| | | public class ShareController extends BaseController { |
| | |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "列表", tags = {"后台管理-分享管理-审核"}) |
| | | @ApiOperation(value = "审核列表", tags = {"后台管理-分享管理"}) |
| | | @GetMapping("/manage/auth/list") |
| | | public R<Page<Share>> authmanagelist(String name,Integer addType,@RequestParam Integer PageNum,Integer pageSize){ |
| | | Page<Share> page = shareService.lambdaQuery().ne(Share::getAuditStatus,1).like(name != null, Share::getName, name).eq(addType != null, Share::getAddType, addType).page(Page.of(pageSize, pageSize)); |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/shop") |
| | | @Api(tags = "门店") |
| | | @Api("门店") |
| | | public class ShopController extends BaseController { |
| | | @Resource |
| | | private ShopService shopService; |
| | |
| | | @Resource |
| | | private SystemConfigService systemConfigService; |
| | | @PostMapping("/index/add") |
| | | @ApiOperation(value = "添加", tags = {"后台-广告管理-首页配置"}) |
| | | @ApiOperation(value = "添加", tags = {"后台管理-广告管理-首页配置"}) |
| | | public R add(@RequestBody IndexConfigSetDto indexConfigSetDto){ |
| | | //先删除type=2的数据 |
| | | List<SystemConfig> list = systemConfigService.lambdaQuery().eq(SystemConfig::getType, 2).list(); |
| | |
| | | return R.ok(); |
| | | } |
| | | @GetMapping("/index/detail") |
| | | @ApiOperation(value = "宣传图片-公司简介", tags = {"后台-广告管理-首页配置","小程序-首页"}) |
| | | @ApiOperation(value = "宣传图片-公司简介", tags = {"后台管理-广告管理-首页配置","小程序-首页"}) |
| | | public R<IndexConfigSetDto> detail(){ |
| | | SystemConfig one = systemConfigService.lambdaQuery().eq(SystemConfig::getType, 2).one(); |
| | | if (one==null){ |
| | |
| | | } |
| | | |
| | | @PostMapping("/startPage/add") |
| | | @ApiOperation(value = "添加", tags = {"后台-广告管理-启动页管理"}) |
| | | @ApiOperation(value = "添加", tags = {"后台管理-广告管理-启动页管理"}) |
| | | public R startPageadd(@RequestBody StartPageSetDto startPageSetDto){ |
| | | //先删除type=1的数据 |
| | | List<SystemConfig> list = systemConfigService.lambdaQuery().eq(SystemConfig::getType, 1).list(); |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/technician") |
| | | @Api(tags = "技师") |
| | | @Api("技师") |
| | | public class TechnicianController extends BaseController { |
| | | @Resource |
| | | private TechnicianService technicianService; |
| | |
| | | * @author luodangjia |
| | | * @since 2024-11-20 |
| | | */ |
| | | @Api(tags = "技师预约管理") |
| | | @Api("技师预约管理") |
| | | @RestController |
| | | @RequestMapping("/technician-subscribe") |
| | | public class TechnicianSubscribeController extends BaseController { |
| | |
| | | * 预约技师 |
| | | */ |
| | | @PostMapping("/subscribe") |
| | | @ApiOperation(value = "预约技师", notes = "预约技师", tags = {"小程序-个人中心-门店管理-预约列表-预约技师"}) |
| | | @ApiOperation(value = "预约技师", notes = "预约技师", tags = {"小程序-个人中心-门店管理-预约列表"}) |
| | | public R<Void> subscribe(@RequestBody TechnicianSubscribe technicianSubscribe) { |
| | | technicianSubscribeService.subscribe(technicianSubscribe); |
| | | return R.ok(); |
| | |
| | | * 取消服务 |
| | | */ |
| | | @GetMapping("/cancel") |
| | | @ApiOperation(value = "取消服务", notes = "取消服务", tags = {"小程序-个人中心-门店管理-预约列表-取消服务"}) |
| | | @ApiOperation(value = "取消服务", notes = "取消服务", tags = {"小程序-个人中心-门店管理,小程序-个人中心-我的预约"}) |
| | | public R<Void> cancel(@ApiParam(value = "预约id") @RequestParam Long id) { |
| | | |
| | | TechnicianSubscribe subscribe = technicianSubscribeService.getOne(new LambdaQueryWrapper<TechnicianSubscribe>() |