| | |
| | | import com.panzhihua.common.model.dtos.DataKanBansDto; |
| | | import com.panzhihua.common.model.dtos.community.convenient.ConvenientMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.community.convenient.DisableOrEnableConvenientMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.McsMerchantDTO; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import com.panzhihua.common.model.dtos.PageDTO; |
| | |
| | | public R getUserInfoByUnionId(@RequestParam("unionId") String unionId) { |
| | | return userService.getUserInfoByUnionId(unionId); |
| | | } |
| | | |
| | | /** |
| | | * 微商业街新增商家账号 |
| | | * @param mcsMerchantDTO |
| | | * @return 商家用户id |
| | | */ |
| | | @PostMapping("insertMcsMerchantAccount") |
| | | public R addMcsMerchantUser(@RequestBody McsMerchantDTO mcsMerchantDTO) { |
| | | return userService.addMcsMerchantUser(mcsMerchantDTO); |
| | | } |
| | | |
| | | /** |
| | | * 微商业街修改商家账号 |
| | | * @param mcsMerchantDTO |
| | | * @return |
| | | */ |
| | | @PutMapping("putMcsMerchantUser") |
| | | public R putMcsMerchantUser(@RequestBody McsMerchantDTO mcsMerchantDTO) { |
| | | return userService.putMcsMerchantUser(mcsMerchantDTO); |
| | | } |
| | | |
| | | /** |
| | | * 检查用户是否有效 |
| | | * @param userId |
| | | * @param type |
| | | * @return |
| | | */ |
| | | @PutMapping("checkUserIsValid") |
| | | public Boolean checkUserIsValid(@RequestParam("userId") Long userId, @RequestParam("type") Integer type) { |
| | | return userService.checkUserIsValid(userId, type); |
| | | } |
| | | } |