add: 目标crud
This commit is contained in:
22
src/main/java/com/dota/nexus/entity/R.java
Normal file
22
src/main/java/com/dota/nexus/entity/R.java
Normal file
@@ -0,0 +1,22 @@
|
||||
package com.dota.nexus.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class R {
|
||||
private Integer code;
|
||||
private String msg;
|
||||
private Object data;
|
||||
|
||||
public static R ok() {
|
||||
return ok(null);
|
||||
}
|
||||
|
||||
public static R ok(Object data) {
|
||||
var r = new R();
|
||||
r.setCode(200);
|
||||
r.setMsg("ok");
|
||||
r.setData(data);
|
||||
return r;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user