| | |
| | | import com.ruoyi.common.security.utils.SecurityUtils; |
| | | import com.ruoyi.shop.domain.dto.MerAgencyPageDto; |
| | | import com.ruoyi.shop.domain.dto.MerMemberTaskPageDto; |
| | | import com.ruoyi.shop.domain.dto.MerShopCertificateEditDto; |
| | | import com.ruoyi.shop.domain.dto.MerShopCertificateListDto; |
| | | import com.ruoyi.shop.domain.vo.MerAgencyPageVo; |
| | | import com.ruoyi.shop.domain.vo.MerMemberTaskPageVo; |
| | | import com.ruoyi.shop.domain.vo.MerShopCertificateListVo; |
| | | import com.ruoyi.shop.domain.vo.MgtShopInfoVo; |
| | | import com.ruoyi.shop.service.shop.ShopCertificateService; |
| | | import com.ruoyi.shop.service.shop.ShopService; |
| | | import com.ruoyi.system.api.domain.dto.MerBaseDto; |
| | | import com.ruoyi.system.api.domain.dto.MgtBaseGetDto; |
| | |
| | | @Autowired |
| | | private ShopService shopService; |
| | | |
| | | @Autowired |
| | | private ShopCertificateService shopCertificateService; |
| | | |
| | | /** |
| | | * 未完成实际统计 |
| | | * @param merBaseDto |
| | |
| | | return R.ok(page.setRecords(merAgencyPageVoList)); |
| | | } |
| | | |
| | | @RequestMapping(value = "/listShopCertificate", method = RequestMethod.POST) |
| | | @ApiOperation(value = "获取商户证书列表") |
| | | public R<List<MerShopCertificateListVo>> listShopCertificate(@RequestBody MerShopCertificateListDto merShopCertificateListDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | List<MerShopCertificateListVo> merShopCertificateListVoList = shopCertificateService.listShopCertificateVo(merShopCertificateListDto); |
| | | return R.ok(merShopCertificateListVoList); |
| | | } |
| | | |
| | | @RequestMapping(value = "/editShopCertificate", method = RequestMethod.POST) |
| | | @ApiOperation(value = "编辑商户证书") |
| | | public R editShopCertificate(@RequestBody MerShopCertificateEditDto merShopCertificateEditDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | shopCertificateService.editShopCertificate(merShopCertificateEditDto); |
| | | return R.ok(); |
| | | } |
| | | } |