优化代码
This commit is contained in:
parent
f95e28a2d8
commit
57053cc0e6
|
|
@ -85,17 +85,16 @@ public interface IUserService {
|
||||||
/**
|
/**
|
||||||
* 绑定微信小程序
|
* 绑定微信小程序
|
||||||
*
|
*
|
||||||
* @param bindMnpValidate
|
* @param bindMnpValidate 参数
|
||||||
* @param userId
|
* @param userId 用户ID
|
||||||
*/
|
*/
|
||||||
void bindMnp(UserBindWechatValidate bindMnpValidate, Integer userId);
|
void bindMnp(UserBindWechatValidate bindMnpValidate, Integer userId);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 绑定微信公众号
|
* 绑定微信公众号
|
||||||
*
|
*
|
||||||
* @param bindOaValidate
|
* @param bindOaValidate 参数
|
||||||
* @param userId
|
* @param userId 用户ID
|
||||||
*/
|
*/
|
||||||
void bindOa(UserBindWechatValidate bindOaValidate, Integer userId);
|
void bindOa(UserBindWechatValidate bindOaValidate, Integer userId);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ public class UserServiceImpl implements IUserService {
|
||||||
@Override
|
@Override
|
||||||
public UserCenterVo center(Integer userId, Integer terminal) {
|
public UserCenterVo center(Integer userId, Integer terminal) {
|
||||||
User user = userMapper.selectOne(new QueryWrapper<User>()
|
User user = userMapper.selectOne(new QueryWrapper<User>()
|
||||||
.select("id,sn,avatar,real_name,nickname,username,mobile,is_new")
|
.select("id,sn,avatar,real_name,nickname,username,mobile,money,is_new")
|
||||||
.eq("id", userId)
|
.eq("id", userId)
|
||||||
.last("limit 1"));
|
.last("limit 1"));
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
@ApiModel(value = "个人中心Vo")
|
@ApiModel(value = "个人中心Vo")
|
||||||
|
|
@ -33,6 +34,9 @@ public class UserCenterVo implements Serializable {
|
||||||
@ApiModelProperty(value = "手机号码")
|
@ApiModelProperty(value = "手机号码")
|
||||||
private String mobile;
|
private String mobile;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "钱包余额")
|
||||||
|
private BigDecimal money;
|
||||||
|
|
||||||
@ApiModelProperty(value = "是否新用户")
|
@ApiModelProperty(value = "是否新用户")
|
||||||
private Integer isNew;
|
private Integer isNew;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue