first version of aida_back

This commit is contained in:
LiaoFJ
2023-01-06 15:17:37 +08:00
parent 7bafabb046
commit 4c531e3961
477 changed files with 15030 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
package com.ai.da.common.enums;
import java.util.stream.Stream;
/**
* @author yanglei
* @description collection 一级类型枚举 Moodboard Printboard Sketchboard MarketingSketch
* @create 2022-10-3 17:33
**/
public enum CollectionLevel1TypeEnum {
/**
* 情绪版
*/
MOOD_BOARD("Moodboard"),
/**
* 印花版
*/
PRINT_BOARD("Printboard"),
/**
* 手稿
*/
SKETCH_BOARD("Sketchboard"),
/**
* 颜色板(js识别暂时存后端 不绑定collection)
*/
COLOR_BOARD("Colorboard"),
/**
* 市场
*/
MARKETING_SKETCH("MarketingSketch");
private String realName;
CollectionLevel1TypeEnum(String realName) {
this.realName = realName;
}
public String getRealName() {
return realName;
}
public static CollectionLevel1TypeEnum uploadOf(String realName){
return Stream.of(CollectionLevel1TypeEnum.values())
.filter(v ->v.getRealName().equals(realName)).findFirst().orElse(null);
}
}

View File

@@ -0,0 +1,45 @@
package com.ai.da.common.enums;
import java.util.stream.Stream;
/**
* @author yanglei
* @description collection 二级类型 Outwear Dress Blouse Skirt Trousers(只争对Sketchboard)
* @create 2022-10-3 17:33
**/
public enum CollectionLevel2TypeEnum {
/**
* 外套
*/
OUTWEAR("Outwear"),
/**
* 裙子
*/
DRESS("Dress"),
/**
* 衬衫
*/
BLOUSE("Blouse"),
/**
* 短裙
*/
SKIRT("Skirt"),
/**
* 裤子
*/
TROUSERS("Trousers");
private String realName;
CollectionLevel2TypeEnum(String realName) {
this.realName = realName;
}
public String getRealName() {
return realName;
}
public static CollectionLevel2TypeEnum of(String realName) {
return Stream.of(CollectionLevel2TypeEnum.values()).filter(v -> v.getRealName().equals(realName)).findFirst().orElse(null);
}
}

View File

@@ -0,0 +1,10 @@
package com.ai.da.common.enums;
/**
* @author: dangweijian
* @description: 分页条件类型
* @create: 2020-01-14 17:33
**/
public enum ConditionType {
EQ,LIKE,BETWEEN;
}

View File

@@ -0,0 +1,47 @@
package com.ai.da.common.enums;
import lombok.Getter;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/**
* @author: yanglei
* @description: 当前的需要design的图片类型 计算用
* @create: 2022-11-19 17:33
**/
@Getter
public enum CurrentDesignPictureTypeEnum {
/**
* PIN
*/
PIN(1,"PIN"),
/**
* USER_LIBRARY
*/
USER_LIBRARY(2,"userLibrary"),
/**
* SYS_FILE
*/
SYS_FILE(3,"sysFile"),
/**
* noPIN
*/
NO_PIN(4,"noPIN");
private Integer code;
private String desc;
CurrentDesignPictureTypeEnum(Integer code, String desc) {
this.code = code;
this.desc = desc;
}
public static CurrentDesignPictureTypeEnum of(String name){
return Stream.of(CurrentDesignPictureTypeEnum.values()).filter(v ->v.name().equals(name)).findFirst().orElse(null);
}
public static List<CurrentDesignPictureTypeEnum> ofList(List<Integer> codes){
return Stream.of(CurrentDesignPictureTypeEnum.values()).filter(v ->codes.contains(v.code)).collect(Collectors.toList());
}
}

View File

@@ -0,0 +1,39 @@
package com.ai.da.common.enums;
import lombok.Getter;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/**
* @author: yanglei
* @description: 当前的需要design的Print图片类型 计算用
* @create: 2022-11-19 17:33
**/
@Getter
public enum CurrentDesignPrintPictureTypeEnum {
/**
* 空白
*/
NO(1,"空白"),
/**
* PIN
*/
PIN(2,"PIN"),
/**
* noPIN
*/
NO_PIN(3,"noPIN");
private Integer code;
private String desc;
CurrentDesignPrintPictureTypeEnum(Integer code, String desc) {
this.code = code;
this.desc = desc;
}
public static List<CurrentDesignPrintPictureTypeEnum> ofList(List<Integer> codes){
return Stream.of(CurrentDesignPrintPictureTypeEnum.values()).filter(v ->codes.contains(v.code)).collect(Collectors.toList());
}
}

View File

@@ -0,0 +1,21 @@
package com.ai.da.common.enums;
public enum DataScope {
ALL("全部"),
DEPT("部门");
private String desc;
DataScope(String desc) {
this.desc = desc;
}
public String getDesc() {
return desc;
}
public void setDesc(String desc) {
this.desc = desc;
}
}

View File

@@ -0,0 +1,33 @@
package com.ai.da.common.enums;
import java.util.stream.Stream;
/**
* @author yanglei
* @description design类型 用户design生成时候区别library和collection
* @create 2022-11-8 17:33
**/
public enum DesignTypeEnum {
/**
* Collection
*/
COLLECTION("Collection"),
/**
* Library
*/
LIBRARY("Library");
private String realName;
DesignTypeEnum(String realName) {
this.realName = realName;
}
public String getRealName() {
return realName;
}
public static DesignTypeEnum of(String realName) {
return Stream.of(DesignTypeEnum.values()).filter(v -> v.getRealName().equals(realName)).findFirst().orElse(null);
}
}

View File

@@ -0,0 +1,46 @@
package com.ai.da.common.enums;
import java.util.stream.Stream;
/**
* @author yanglei
* @description library 一级类型枚举 Moodboard Printboard Sketchboard MarketingSketch Models
* @create 2022-11-3 17:33
**/
public enum LibraryLevel1TypeEnum {
/**
* 情绪版
*/
MOOD_BOARD("Moodboard"),
/**
* 印花版
*/
PRINT_BOARD("Printboard"),
/**
* 手稿
*/
SKETCH_BOARD("Sketchboard"),
/**
* 市场
*/
MARKETING_SKETCH("MarketingSketch"),
/**
* 模特
*/
MODELS("Models");
private String realName;
LibraryLevel1TypeEnum(String realName) {
this.realName = realName;
}
public String getRealName() {
return realName;
}
public static LibraryLevel1TypeEnum uploadOf(String realName){
return Stream.of(LibraryLevel1TypeEnum.values())
.filter(v ->v.getRealName().equals(realName)).findFirst().orElse(null);
}
}

View File

@@ -0,0 +1,38 @@
package com.ai.da.common.enums;
import java.util.stream.Stream;
/**
* @author yanglei
* @description Top枚举 基于CollectionLevel1TypeEnum 是Sketchboard的二级类型分类
* @create 2022-10-3 17:33
**/
public enum LibraryTopTypeEnum {
/**
* TOP 包括 Outwear Dress Blouse
*/
TOP("Top"),
/**
* 包括 Skirt Trousers
*/
BOTTOM("Bottom"),
/**
* Print
*/
PRINT("Print");
private String realName;
LibraryTopTypeEnum(String realName) {
this.realName = realName;
}
public String getRealName() {
return realName;
}
public static LibraryTopTypeEnum uploadOf(String realName){
return Stream.of(LibraryTopTypeEnum.values())
.filter(v ->v.getRealName().equals(realName)).findFirst().orElse(null);
}
}

View File

@@ -0,0 +1,23 @@
package com.ai.da.common.enums;
import java.util.stream.Stream;
/**
* @author: yanglei
* @description: 账户类型枚举 邮箱 短信密码
* @create: 2022-8-10 17:33
**/
public enum LoginTypeEnum {
/**
* 邮箱方式
*/
EMAIL,
/**
* 密码方式
*/
PASSWORD;
public static LoginTypeEnum of(String name){
return Stream.of(LoginTypeEnum.values()).filter(v ->v.name().equals(name)).findFirst().orElse(null);
}
}

View File

@@ -0,0 +1,31 @@
package com.ai.da.common.enums;
import java.util.stream.Stream;
/**
* @author: yanglei
* @description: 操作类型 登入 忘记密码
* @create: 2022-8-10 17:33
**/
public enum OperationTypeEnum {
/**
*登入
*/
LOGIN,
/**
* 异常ip
*/
EXCEPTION_IP,
/**
* 绑定邮箱
*/
BIND_MAILBOX,
/**
* 忘记密码
*/
FORGET_PWD;
public static OperationTypeEnum of(String name){
return Stream.of(OperationTypeEnum.values()).filter(v ->v.name().equals(name)).findFirst().orElse(null);
}
}

View File

@@ -0,0 +1,10 @@
package com.ai.da.common.enums;
/**
* @author: dangweijian
* @description: 排序类型
* @create: 2020-01-14 17:33
**/
public enum OrderType {
DESC,ASC;
}

View File

@@ -0,0 +1,37 @@
package com.ai.da.common.enums;
import java.util.stream.Stream;
/**
* @author yanglei
* @description python调用java 操作数类型 generatePrint ->生成印花 designCollection ->设计collection
* @create 2022-10-3 17:33
**/
public enum PythonToJavaApiOperationTypeEnum {
/**
* 生成印花
*/
GENERATE_PRINT("generatePrint"),
/**
* 生成高级design
*/
GENERATE_ADVANCED_DESIGN("generateAdvancedDesign"),
/**
* 设计collection
*/
DESIGN_COLLECTION("designCollection");
private String realName;
PythonToJavaApiOperationTypeEnum(String realName) {
this.realName = realName;
}
public String getRealName() {
return realName;
}
public static PythonToJavaApiOperationTypeEnum uploadOf(String realName){
return Stream.of(PythonToJavaApiOperationTypeEnum.values()).filter(v ->v.getRealName().equals(realName)).findFirst().orElse(null);
}
}

View File

@@ -0,0 +1,33 @@
package com.ai.da.common.enums;
import java.util.stream.Stream;
/**
* @author yanglei
* @description 控制生成类型的参数枚举outfit时候传 single , 另外一个传 overall
* @create 2022-10-3 17:33
**/
public enum SingleOverallEnum {
/**
* 单个
*/
SINGLE("single"),
/**
* 所有
*/
OVERALL("overall");
private String realName;
SingleOverallEnum(String realName) {
this.realName = realName;
}
public String getRealName() {
return realName;
}
public static SingleOverallEnum of(String realName){
return Stream.of(SingleOverallEnum.values()).filter(v ->v.getRealName().equals(realName)).findFirst().orElse(null);
}
}

View File

@@ -0,0 +1,46 @@
package com.ai.da.common.enums;
import java.util.stream.Stream;
/**
* @author yanglei
* @description single模式下的类别选择参数枚举 有outwear,dress,blouse,skirt,trousers
* @create 2022-10-3 17:33
**/
public enum SwitchCategoryEnum {
/**
* 外套
*/
OUTWEAR("Outwear"),
/**
* 连衣裙
*/
DRESS("Dress"),
/**
* 衬衫
*/
BLOUSE("Blouse"),
/**
* 短裙
*/
SKIRT("Skirt"),
/**
* 裤子
*/
TROUSERS("Trousers"),
;
private String realName;
SwitchCategoryEnum(String realName) {
this.realName = realName;
}
public String getRealName() {
return realName;
}
public static SwitchCategoryEnum of(String realName){
return Stream.of(SwitchCategoryEnum.values()).filter(v ->v.getRealName().equals(realName)).findFirst().orElse(null);
}
}

View File

@@ -0,0 +1,40 @@
package com.ai.da.common.enums;
import java.util.stream.Stream;
/**
* @author yanglei
* @description 系统文件 一级类型枚举 Images icon accessories
* @create 2022-10-6 17:33
**/
public enum SysFileLevel1TypeEnum {
IMAGES("Images","images"),
ICON_C("Iconc","iconc"),
ACCESSORIES("Accessories","accessories");
private String realName;
/**
* 上传路径名字
*/
private String uploadPathName;
SysFileLevel1TypeEnum(String realName, String uploadPathName) {
this.realName = realName;
this.uploadPathName = uploadPathName;
}
public String getRealName() {
return realName;
}
public String getUploadPathName() {
return uploadPathName;
}
public static SysFileLevel1TypeEnum uploadOf(String uploadPathName){
return Stream.of(SysFileLevel1TypeEnum.values()).filter(v ->v.getUploadPathName().equals(uploadPathName)).findFirst().orElse(null);
}
}

View File

@@ -0,0 +1,73 @@
package com.ai.da.common.enums;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/**
* @author yanglei
* @description 系统文件 二级类型枚举 bag earrings hairstyle shoes icon blouse dress outwear skirt trousers
* @create 2022-10-6 17:33
**/
public enum SysFileLevel2TypeEnum {
/**
* ICON
*/
ICON("Icon","icon"),
BAG("Bag","bag"),
EARRINGS("Earring","earring"),
HAIRSTYLE("Hairstyle","hairstyle"),
SHOES("Shoes","shoes"),
BODY("Body","body"),
BLOUSE("Blouse","blouse"),
DRESS("Dress","dress"),
OUTWEAR("Outwear","outwear"),
SKIRT("Skirt","skirt"),
TROUSERS("Trousers","trousers");
private String realName;
/**
* 上传路径名字
*/
private String uploadPathName;
SysFileLevel2TypeEnum(String realName, String uploadPathName) {
this.realName = realName;
this.uploadPathName = uploadPathName;
}
public String getRealName() {
return realName;
}
public String getUploadPathName() {
return uploadPathName;
}
public static SysFileLevel2TypeEnum uploadOf(String uploadPathName){
return Stream.of(SysFileLevel2TypeEnum.values()).filter(v ->v.getUploadPathName().equals(uploadPathName)).findFirst().orElse(null);
}
public static SysFileLevel2TypeEnum realNameOf(String realName){
return Stream.of(SysFileLevel2TypeEnum.values()).filter(v ->v.getRealName().equals(realName)).findFirst().orElse(null);
}
public static SysFileLevel2TypeEnum realNameOfPython(String realName){
return Stream.of(BLOUSE,DRESS,OUTWEAR,SKIRT,TROUSERS).filter(v ->v.getRealName().equals(realName)).findFirst().orElse(null);
}
public static List<String> ofPython(){
return Stream.of(BLOUSE,DRESS,OUTWEAR,SKIRT,TROUSERS).map(SysFileLevel2TypeEnum::getRealName).collect(Collectors.toList());
}
public static List<String> ofPythonPath(){
return Stream.of(BLOUSE,DRESS,OUTWEAR,SKIRT,TROUSERS).map(SysFileLevel2TypeEnum::getUploadPathName).collect(Collectors.toList());
}
}