| | |
| | | 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.BindUserPhoneDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.LoginWithPhoneDTO; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.McsMerchantDTO; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | import com.panzhihua.common.model.vos.*; |
| | | import com.panzhihua.common.model.vos.shop.ShopStoreVO; |
| | | import com.panzhihua.common.model.vos.user.*; |
| | | |
| | | import javax.validation.Valid; |
| | | |
| | | /** |
| | | * @program: springcloud_k8s_panzhihuazhihuishequ |
| | |
| | | */ |
| | | @PutMapping("checkUserIsValid") |
| | | Boolean checkUserIsValid(@RequestParam("userId") Long userId, @RequestParam("type") Integer type); |
| | | |
| | | /** |
| | | * 根据手机号、用户类型查询用户 |
| | | * @param phone |
| | | * @param type |
| | | * @return |
| | | */ |
| | | @GetMapping("/getSysUserByPhone") |
| | | R getSysUserByPhone(@RequestParam("phone") String phone, @RequestParam("type") Integer type); |
| | | |
| | | /** |
| | | * 发送验证码 |
| | | * @param phone 手机号 |
| | | * @param clientIP 用户ip |
| | | * @param prefixKey redis Key 前缀 |
| | | * @param limit 获取次数限制 |
| | | * @param timeout 超次数获取时间等待 |
| | | * @return |
| | | */ |
| | | @GetMapping("/sendMessageCode") |
| | | R sendMessageCode(@RequestParam("phone") String phone, |
| | | @RequestParam(value = "clientIP", required = false) String clientIP, |
| | | @RequestParam("prefixKey") String prefixKey, |
| | | @RequestParam("limit") Integer limit, |
| | | @RequestParam("timeout") Integer timeout); |
| | | |
| | | /** |
| | | * 根据openId获取微商业街用户 |
| | | * @param openid |
| | | * @return |
| | | */ |
| | | @GetMapping("/getMcsUserByOpenId") |
| | | R getMcsUserByOpenId(@RequestParam("openid") String openid); |
| | | |
| | | /** |
| | | * 商业街用户微信授权-绑定手机号 |
| | | * @param bindUserPhoneDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/mcs/bindPhone") |
| | | R bindOrAddMcsUser(@RequestBody @Valid BindUserPhoneDTO bindUserPhoneDTO); |
| | | } |