initial
This commit is contained in:
24
ym-s7/src/main/java/com/cnbm/s7/entity/AGVInfoCallBack.java
Normal file
24
ym-s7/src/main/java/com/cnbm/s7/entity/AGVInfoCallBack.java
Normal file
@@ -0,0 +1,24 @@
|
||||
package com.cnbm.s7.entity;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 表
|
||||
* </p>
|
||||
*
|
||||
* @author caixiang
|
||||
* @since 2022-05-31
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
public class AGVInfoCallBack implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String warehouseName;
|
||||
private Integer status;
|
||||
private String content;
|
||||
}
|
||||
66
ym-s7/src/main/java/com/cnbm/s7/entity/R.java
Normal file
66
ym-s7/src/main/java/com/cnbm/s7/entity/R.java
Normal file
@@ -0,0 +1,66 @@
|
||||
/**
|
||||
* Copyright (c) 2016-2019 人人开源 All rights reserved.
|
||||
*
|
||||
* https://www.renren.io
|
||||
*
|
||||
* 版权所有,侵权必究!
|
||||
*/
|
||||
|
||||
package com.cnbm.s7.entity;
|
||||
|
||||
|
||||
import org.springframework.http.HttpStatus;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 返回数据
|
||||
*
|
||||
* @author Mark sunlightcs@gmail.com
|
||||
*/
|
||||
public class R extends HashMap<String, Object> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
//默认成功 是1
|
||||
public R() {
|
||||
put("code", 1);
|
||||
put("msg", "success");
|
||||
}
|
||||
|
||||
public static R error() {
|
||||
return error(HttpStatus.INTERNAL_SERVER_ERROR.value(), "未知异常,请联系管理员");
|
||||
}
|
||||
|
||||
public static R error(String msg) {
|
||||
return error(HttpStatus.INTERNAL_SERVER_ERROR.value(), msg);
|
||||
}
|
||||
|
||||
public static R error(int code, String msg) {
|
||||
R r = new R();
|
||||
r.put("code", code);
|
||||
r.put("msg", msg);
|
||||
return r;
|
||||
}
|
||||
|
||||
public static R ok(String msg) {
|
||||
R r = new R();
|
||||
r.put("msg", msg);
|
||||
return r;
|
||||
}
|
||||
|
||||
public static R ok(Map<String, Object> map) {
|
||||
R r = new R();
|
||||
r.putAll(map);
|
||||
return r;
|
||||
}
|
||||
|
||||
public static R ok() {
|
||||
return new R();
|
||||
}
|
||||
|
||||
@Override
|
||||
public R put(String key, Object value) {
|
||||
super.put(key, value);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
16
ym-s7/src/main/java/com/cnbm/s7/entity/ReadedBack.java
Normal file
16
ym-s7/src/main/java/com/cnbm/s7/entity/ReadedBack.java
Normal file
@@ -0,0 +1,16 @@
|
||||
package com.cnbm.s7.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Desc: ""
|
||||
* @Author: caixiang
|
||||
* @DATE: 2021/12/6 13:42
|
||||
*/
|
||||
@Data
|
||||
public class ReadedBack {
|
||||
private Integer size;
|
||||
private List<Object> content;
|
||||
}
|
||||
Reference in New Issue
Block a user