@Validated
public interface UserService
| Modifier and Type | Method and Description |
|---|---|
void |
getUserHeadPicture(Long userId,
javax.servlet.http.HttpServletResponse response)
获取用户上传的头像
|
UserEnt |
getUserInfo(Long userId)
获取用户个人基本信息
|
void |
initRegister(@NotBlank @Length(max=128) String openId)
新增一个用户,仅包含openId信息和默认用户角色
|
void |
saveUserHeadPicture(Long userId,
@NotNull org.springframework.web.multipart.MultipartFile pictureFile)
用户更换头像
|
void |
updateUserInformation(Long userId,
@Length(max=8) String name,
@Length(min=11,max=11) String teleNumber,
@Length(max=12) String orgDescription)
更新用户的个人信息
|
String |
userLogin(@NotBlank @Length(max=128) String code)
用户登录与注册;
- 存在用户信息则登录,数据库中如果没有该用户的openId则先完成基础的注册
|
String userLogin(@NotBlank @Length(max=128) @NotBlank @Length(max=128) String code)
code - 登录codeUserEnt getUserInfo(Long userId)
userId - 用户Idvoid initRegister(@NotBlank @Length(max=128)
@NotBlank @Length(max=128) String openId)
openId - 用户openIdvoid updateUserInformation(Long userId, @Length(max=8) @Length(max=8) String name, @Length(min=11,max=11) @Length(min=11,max=11) String teleNumber, @Length(max=12) @Length(max=12) String orgDescription)
userId - 用户Idname - 用户新姓名teleNumber - 用户手机号orgDescription - 机构简介void saveUserHeadPicture(Long userId, @NotNull @NotNull org.springframework.web.multipart.MultipartFile pictureFile)
userId - 用户IdpictureFile - 用户上传的文件void getUserHeadPicture(Long userId, javax.servlet.http.HttpServletResponse response)
userId - 用户Idresponse - httpServletResponseCopyright © 2022. All rights reserved.