@@ -71,8 +71,8 @@ public class Swagger3Config {
/*作者信息*/
Contact contact = new Contact("", "", "");
return new ApiInfo(
- "KJB接口文档",
- "KJB V1.0 测试接口文档",
+ "双人对抗接口文档",
+ "双人对抗 V1.0 测试接口文档",
"v1.0",
"",
contact,
@@ -38,4 +38,6 @@ public class UserEntry extends BaseEntry {
private String profession;
@Column(name = "role",columnDefinition = "tinyint not null default 0 comment '角色:0普通用户 1管理员'")
private int role;
+ @Column(name = "marriage_situation",columnDefinition = "varchar(10)comment '已婚0 未婚 1 离异 2' ")
+ private String marriageSituation;
}
@@ -139,6 +139,7 @@ public class UserController extends BaseController {
//用户信息验证通过,签发token
JSONObject resultJson = new JSONObject();
resultJson.put("token",JWTUtil.getTokenByUserInfo(entry));
+ resultJson.put("marriageSituation",entry.getMarriageSituation());
return success(resultJson);