TASK:workspace、design模块代码;

This commit is contained in:
shahaibo
2023-09-06 14:28:20 +08:00
parent d4c44b72d8
commit de0d8bc459
30 changed files with 1143 additions and 6 deletions

View File

@@ -0,0 +1,41 @@
package com.ai.da.model.enums;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
@Data
@Accessors(chain = true)
public class BizJson implements Serializable {
private static final long serialVersionUID = 1L;
public BizJson() {}
public BizJson(String name, String key, String value) {
this.name = name;
this.key = key;
this.value = value;
}
public BizJson(String key, String value) {
this.key = key;
this.value = value;
}
/**
* 参数名称
*/
private String name;
/**
* 参数主键
*/
private String key;
/**
* 参数默认值
*/
private String value;
}

View File

@@ -0,0 +1,10 @@
package com.ai.da.model.enums;
public interface IEnumDisplay {
String getValue();
String name();
}

View File

@@ -0,0 +1,28 @@
package com.ai.da.model.enums;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* @Author: SHAHAIBO
* @Date: 2023/08/01 17:21
* @Description: 服装性别分类
*/
public enum Mannequin implements IEnumDisplay {
A("A"),
B("B"),
C("C")
;
private String value;
Mannequin(String value) {
this.value = value;
}
@Override
@JsonValue
public String getValue() {
return this.value;
}
}

View File

@@ -0,0 +1,27 @@
package com.ai.da.model.enums;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* @Author: SHAHAIBO
* @Date: 2023/08/01 17:21
* @Description: 服装性别分类
*/
public enum Position implements IEnumDisplay {
OVERALL("整体"),
SINGLE("部位")
;
private String value;
Position(String value) {
this.value = value;
}
@Override
@JsonValue
public String getValue() {
return this.value;
}
}

View File

@@ -0,0 +1,28 @@
package com.ai.da.model.enums;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* @Author: SHAHAIBO
* @Date: 2023/08/01 17:21
* @Description: 服装性别分类
*/
public enum Sex implements IEnumDisplay {
MALE("男装"),
FEMALE("女装"),
CHILD("童装")
;
private String value;
Sex(String value) {
this.value = value;
}
@Override
@JsonValue
public String getValue() {
return this.value;
}
}