| | |
| | | |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.VolunteerMerchantVO; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | | import com.panzhihua.service_community.service.VolunteerMerchantService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | return vtService.getUser(communityId,userName,userPhone); |
| | | } |
| | | |
| | | /** |
| | | * 是否是商家 |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @GetMapping("/isMerchant") |
| | | public R isMerchant(@RequestParam("userId") String userId) |
| | | { |
| | | if(StringUtils.isEmpty(userId)) |
| | | { |
| | | return R.fail("用户id不能为空"); |
| | | } |
| | | return vtService.isMerchant(userId); |
| | | } |
| | | |
| | | |
| | | } |