| | |
| | | import com.oying.modules.system.service.MerchantService; |
| | | import com.oying.modules.system.domain.dto.MerchantsQueryCriteria; |
| | | import com.oying.utils.R; |
| | | import com.oying.utils.SecurityUtils; |
| | | import lombok.RequiredArgsConstructor; |
| | | |
| | | import java.util.List; |
| | |
| | | return new ResponseEntity<>(R.success(merchantService.queryAll(criteria, page)), HttpStatus.OK); |
| | | } |
| | | |
| | | @GetMapping("findByUserId") |
| | | @ApiOperation("根据用户查询商户信息") |
| | | @PreAuthorize("@el.check('merchant:list')") |
| | | public ResponseEntity<Object> findByUserId() { |
| | | return new ResponseEntity<>(R.success(merchantService.findByUserId(SecurityUtils.getCurrentUserId())), HttpStatus.OK); |
| | | } |
| | | |
| | | @PostMapping |
| | | @Log("新增商户信息") |
| | | @ApiOperation("新增商户信息") |