提交 be84e9d0 编写于 作者: 栩xx's avatar 栩xx

modify api

上级 772925df
package com.peekaboo.test.demo.ResultDesign;
public class Result<T> {
private int code;
private int code;//返回码
private String message;
private String message;//返回信息
private T data;
private T data;//返回数据
public Result() {}
public Result(int code, String message) {
this.code = code;
......
......@@ -27,9 +27,7 @@ public class UserController {
@Autowired
private UserMapper userMapper;
private static final String Md5Password = "peekabooGame";
private List<Rank> rankList=new ArrayList<>();
//登录接口
......
package com.peekaboo.test.demo.entity;
//图鉴实体
public class Atlas {
private int RoleID;
private String name;
private int identity;
private String text;
private String skillName;
private int cd;
private int leftTime;
private String describeText;
private String filePath;
private int RoleID;//角色id
private String name;//角色名字
private int identity;//角色身份
private String text;//角色描述
private String skillName;//角色技能名字
private int cd;//技能cd
private int leftTime;//技能持续时间
private String describeText;//技能描述
private String filePath;//角色图鉴文件路径
public Atlas(){}
......
......@@ -2,6 +2,7 @@ package com.peekaboo.test.demo.entity;
import lombok.Data;
//端口实体
@Data
public class Port {
private int id;
......
......@@ -2,6 +2,7 @@ package com.peekaboo.test.demo.entity;
import lombok.Data;
//道具实体
@Data
public class Prop {
private int id;
......
package com.peekaboo.test.demo.entity;
//排行榜实体
public class Rank {
private String userID;
private int integral;
private String userID;//用户id
private int integral;//用户积分
public String getUserID() {
return userID;
......
......@@ -4,13 +4,13 @@ import lombok.Data;
import java.util.Date;
//记录实体
@Data
public class Record {
private int id;
private int id;//记录id
@JsonFormat(timezone = "GMT+8",pattern = "yyyy/MM/dd HH:mm:ss")
private Date date;
private String content;
private Date date;//记录日期
private String content;//记录内容
public Record(int id, Date date, String content) {
this.id = id;
......
......@@ -4,13 +4,11 @@ import lombok.Data;
@Data
public class Role {
private int id;
private String name;
private int identity;
private String text;
private String filePath;
private int id;//角色id
private String name;//角色名字
private int identity;//角色身份
private String text;//角色描述
private String filePath;//角色图片文件路径
public Role(int id, String name, int identity, String text, String filePath) {
this.id = id;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册