| | |
| | | import com.ruoyi.system.api.domain.vo.MgtSimpleShopVo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestMethod; |
| | |
| | | @RequestMapping(value = "/createMgtShop", method = RequestMethod.POST) |
| | | @Log(title = "商户管理", businessType = BusinessType.UPDATE,operContent = "编辑商户") |
| | | @ApiOperation(value = "平台编辑商户") |
| | | public R createMgtShop(@RequestBody MgtEditShopDto mgtEditShopDto) { |
| | | public R createMgtShop(@Validated @RequestBody MgtEditShopDto mgtEditShopDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | mgtEditShopDto.setUserId(userId); |
| | | shopService.createShop(mgtEditShopDto); |