package com.panzhihua.common.service.user;
|
|
import com.panzhihua.common.model.vos.LoginUserInfoVO;
|
import com.panzhihua.common.model.vos.MenuVO;
|
import com.panzhihua.common.model.vos.R;
|
import com.panzhihua.common.model.vos.user.ChangePasswordVO;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import java.util.List;
|
|
/**
|
* @program: springcloud_k8s_panzhihuazhihuishequ
|
* @description: feign-userservice
|
* @author: huang.hongfa weixin hhf9596 qq 959656820
|
* @create: 2020-11-24 08:58
|
**/
|
@FeignClient(name = "user")
|
public interface UserService {
|
|
/**
|
* 新增微信用户
|
* @param openid 微信小程序标志
|
* @param sessionKey 会话密钥
|
* @param unionid 微信平台唯一ID
|
* @return 新增结果
|
*/
|
@PostMapping("/addOrUpdate")
|
R addOrUpdate(@RequestParam("openid") String openid, @RequestParam("sessionKey")String sessionKey, @RequestParam("unionid")String unionid);
|
|
/**
|
* 维护小程序用户基本信息 头像 昵称 性别
|
* @param userId 数据库用户ID
|
* @param nickName 昵称
|
* @param gender 性别
|
* @param avatarUrl 头像
|
* @return 维护结果
|
*/
|
@PostMapping("/updateUserWeiXinInfo")
|
R updateUserWeiXinInfo(@RequestParam("userId")Long userId, @RequestParam("nickName")String nickName, @RequestParam("gender")int gender, @RequestParam("avatarUrl")String avatarUrl);
|
|
/**
|
* 维护微信用户手机号
|
* @param userId 数据库ID
|
* @param purePhoneNumber 没有区号的手机号
|
* @return 维护结果
|
*/
|
@PostMapping("/updateUserWeiXinPhone")
|
R updateUserWeiXinPhone(@RequestParam("userId")Long userId, @RequestParam("purePhoneNumber")String purePhoneNumber);
|
|
/**
|
* 获取平台用户
|
* @param userId 用户ID
|
* @return 平台用户信息
|
*/
|
@PostMapping("/getUserInfoUserId")
|
R<LoginUserInfoVO> getUserInfoByUserId(@RequestParam("userId") String userId);
|
|
/**
|
* 获取平台用户
|
* @param userName 登录账户+_type
|
* @return 平台用户信息
|
*/
|
@PostMapping(value = "/getUserInfo")
|
R<LoginUserInfoVO> getUserInfo(@RequestParam("userName") String userName);
|
|
/**
|
* 获取平台所有权限路径url
|
* @return 所有url
|
*/
|
@PostMapping("/role/getAllMenu")
|
R<List<MenuVO>> getAllMenu();
|
|
/**
|
*
|
* @param username 用户的ID
|
* @return 用户所有角色
|
*/
|
@PostMapping("/role/getUserRoles")
|
R<List<String>> getUserRoles(@RequestParam("username") String username);
|
|
/**
|
* 查询社区的党委角色
|
* @param communityId 社区id
|
* @return 党委角色列表
|
*/
|
@PostMapping("/role/listidentity")
|
R listIdentity(@RequestParam("communityId")Integer communityId);
|
|
/**
|
* 修改用户登录密码
|
* @param changePasswordVO 新密码
|
* @return 修改结果
|
*/
|
@PostMapping("/user/changepassword")
|
R changePassword(@RequestBody ChangePasswordVO changePasswordVO);
|
|
/**
|
* 某社区后台人员查询
|
* @param param 名字
|
* @param communityId 社区id
|
* @return 人员集合
|
*/
|
@PostMapping("/user/listactivitymanager")
|
R listActivityManager(@RequestParam("param") String param, @RequestParam("communityId")Long communityId);
|
}
|