public enum ShopStaeEnum {
check(0,“审核中”),OFFLINE(-1,“非法店铺”),SUCCESS(1,“操作成功”),PASS(2,“通过认证”),INNER_ERROR(-1001,“内部系统错误”);
private int state;
private String stateInfo;
private ShopStaeEnum(int state, String stateInfo) {
this.state=state;
this.stateInfo=stateInfo;
}
}
public class ShopExecution {
//结果状态
private int state;
//状态标识
private String stateInfo;
//店铺数量
private int count;
//操作的shop(增删改查店铺的时候用到)
private Shop shop;
//shop列表(查询店铺列表的时候使用)
private List shopList;
//初始化方法
public ShopExecution() {
}
// 店铺操作失败的时候使用的构造器
public ShopExecution(ShopStateEnum stateEnum) {
this.state=stateEnum.getState();
this.stateInfo=stateEnum.getStateInfo();
}
}
SSM商铺V1.0,解决毕设痛点;SpringBoot商铺V2.0,满足工作刚需
了解课程