| | |
| | | import com.ruoyi.system.api.domain.vo.MgtSimpleShopVo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | @RestController |
| | | @RequestMapping("/mgt/shop") |
| | | public class MgtShopController { |
| | | |
| | | Logger logger = LoggerFactory.getLogger(MgtShopController.class); |
| | | |
| | | @Resource |
| | | private ShopService shopService; |
| | |
| | | @RequestMapping(value = "/mgtShopHFTXAuth", method = RequestMethod.POST) |
| | | @Log(title = "商户进件管理", businessType = BusinessType.UPDATE,operContent = "商户进件") |
| | | @ApiOperation(value = "平台商户进件(汇付天下)") |
| | | public R mgtShopHFTXAuth(@Validated @RequestBody MgtShopHFTXAuthDto mgtShopHFTXAuthDto) { |
| | | public R mgtShopHFTXAuth(@RequestBody MgtShopHFTXAuthDto mgtShopHFTXAuthDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | mgtShopHFTXAuthDto.setUserId(userId); |
| | | shopService.mgtShopHFTXAuth(mgtShopHFTXAuthDto); |
| | |
| | | |
| | | @RequestMapping(value = "/merchantBasicdataNotify", method = RequestMethod.POST) |
| | | @Log(title = "商户进件回调通知(汇付天下)", businessType = BusinessType.UPDATE,operContent = "商户进件") |
| | | public void merchantBasicdataNotify(@Validated @RequestBody JSONObject jsonObject, HttpServletResponse response){ |
| | | R<String> r = shopService.merchantBasicdataNotify(jsonObject); |
| | | public void merchantBasicdataNotify(MerchantBasicDataNotifyDto dto, HttpServletResponse response){ |
| | | R<String> r = shopService.merchantBasicdataNotify(dto); |
| | | if(r.getCode() == 200){ |
| | | response.setStatus(200); |
| | | PrintWriter out = null; |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | @RequestMapping(value = "/getMgtShopHFTXAuthInfo", method = RequestMethod.POST) |
| | | @ApiOperation(value = "获取商户进件信息(汇付天下)") |
| | | public R<MgtShopHFTXAuthGetVo> getMgtShopHFTXAuthInfo(@Validated @RequestBody MgtShopHFTXAuthGetDto mgtShopHFTXAuthGetDto){ |