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