Browse Source

取消User密码字段序列化

test
smallchill 5 years ago
parent
commit
210cec98d8
  1. 2
      blade-service-api/blade-user-api/src/main/java/org/springblade/system/user/entity/User.java
  2. 7
      blade-service-api/blade-user-api/src/main/java/org/springblade/system/user/vo/UserVO.java

2
blade-service-api/blade-user-api/src/main/java/org/springblade/system/user/entity/User.java

@ -17,7 +17,6 @@
package org.springblade.system.user.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;
@ -47,7 +46,6 @@ public class User extends TenantEntity {
/**
* 密码
*/
@JsonIgnore
private String password;
/**
* 昵称

7
blade-service-api/blade-user-api/src/main/java/org/springblade/system/user/vo/UserVO.java

@ -16,6 +16,7 @@
*/
package org.springblade.system.user.vo;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
@ -40,6 +41,12 @@ public class UserVO extends User {
@JsonSerialize(using = ToStringSerializer.class)
private Long id;
/**
* 密码
*/
@JsonIgnore
private String password;
/**
* 租户名
*/

Loading…
Cancel
Save