package com.ai.da.common.constant;

import java.util.Arrays;
import java.util.List;

public class CommonConstant {
    // 单位 秒  10分钟过期
//    public static final Long TASK_EXPIRE_TIME =  24 * 60 * 60L;
    public static final Long TASK_EXPIRE_TIME =  10 * 60L;
    // 单位 秒  两天过期
    public static final Long CREDITS_EXPIRE_TIME = 2 * 24 * 60 * 60L;
    // 单位 分钟
    public static final Integer MINIO_IMAGE_EXPIRE_TIME = 24 * 60;
    // 单位 秒 一天过期 in redis
    public static final Long GENERATE_RESULT_EXPIRE_TIME = 24 * 60 * 60L;
    // 单位 秒 7天过期
    public static final Long REDIS_SET_EXPIRE_TIME = 24 * 60 * 60 * 7L;

    public static class Numbers{
        public static final Integer NUMBER_10 =  10;
        public static final Integer NUMBER_1000 =  1000;
        public static final Integer NUMBER_10080 =  10080;
    }

    public static final String GENERATE_PATH = "/api/generate_image";

    public static final String GENERATE_SINGLE_LOGO = "/api/generate_single_logo";

    public static final String GENERATE_SLOGAN = "/api/slogan";

    public static final String GENERATE_CANCEL = "/api/generate_cancel/";

    public static final String GENERATE_LOGO_SINGLE_CANCEL = "/api/generate_single_logo_cancel/";

//    public static final String POSE_TRANSFORMATION_CANCEL = "/api/pose_transform_cancel/";
    public static final String POSE_TRANSFORMATION_CANCEL = "/api/comfyui_i_2_video_cancel/";

    public static final String PYTHON_PORT_9996 = "9996";

    public static final String PYTHON_PORT_9997 = "9997";

    public static final List<String> AGES_EN = Arrays.asList("Below 20", "20-30", "30-40", "40+");

    public static final List<String> AGES_CN = Arrays.asList("20岁以下", "20-30岁", "30-40岁", "40+岁");
    public static final List<String> IF_HELPFUL_EN = Arrays.asList("Easy to learn and use", "Easy to get trend information",
            "Lots of creative design proposals","The AIGC functions for moodboard is helpful","The AIGC functions for design sketches is helpful",
            "Easy to select the right color","The Chatbot function is helpful","The print position function is helpful",
            "The drawing function is helpful","The export function is useful","Easy to edit the design","Others");

    public static final List<String> IF_HELPFUL_CN = Arrays.asList("易于学习和使用", "容易获取趋势信息",
            "提供大量创意设计方案","AIGC功能对灵感板有帮助","AIGC功能对设计草图有帮助",
            "容易选择合适的颜色","聊天机器人功能有帮助","打印位置功能有帮助",
            "绘图功能有帮助","导出功能有用","设计编辑简单","其他");

    public static final List<String> IF_IMPROVE_EN = Arrays.asList("Proposed designs are boring, need more interesting designs",
            "Difficult to make changes on design","Only 2D output, no 3D results","Difficult to apply keywords for AIGC generation",
            "Clothing is not in the right proportion","Not compatible with pattern making solutions","Improved user interface for better navigation",
            "Lack of responsive customer support","Insufficient tutorial or guidance for new users","Limited personalization options for designs","Others");

    public static final List<String> IF_IMPROVE_CN = Arrays.asList("提供的设计很无聊，需要更多有趣的设计",
            "设计修改困难","只有2D输出，没有3D结果","难以选择合适的关键词应用于AIGC生成",
            "服装比例不正确","与打版解决方案不兼容","改进用户界面以便更好导航",
            "客户支持响应不及时","对新用户的教程或指导不足","设计个性化选项有限","其他");

    public static final List<String> IS_SUBSCRIBE = Arrays.asList("yes", "no");

//    public static final String DEFAULT_AVATAR = "aida-users/87/avatar/default.jpg";
    public static final String DEFAULT_AVATAR = "aida-users/87/avatar/default.png";

    /* 截止至2024/08/26，在Code-Create DB中pmr_users表中最大的用户id */
    public static final Long MAXIMUM_USER_ID = 704L;
//    public static final Long MAXIMUM_USER_ID = 225L;

    // 激活更改邮箱 链接有效期 毫秒 3天
    public static final Long CHANGE_MAILBOX_LINK_VALIDITY = 259200000L;

    public static final String RCA_WORKSHOP_TAG = "#RCAworkshop_2024";

    public static final String PORTFOLIO_DELETED_EN = "Portfolio has been deleted";

    public static final String PORTFOLIO_DELETED_CN = "作品已删除";

    public static final String TIME_FORMAT_MMM_dd_yyyy_EEEE = "MMM. dd, yyyy, EEEE";

    public static final String TIME_FORMAT_MMM_dd_yyyy = "MMM. dd, yyyy";

    public static final String TIME_FORMAT_yyyy_MM_dd_HH_mm_ss = "yyyy-MM-dd HH:mm:ss";

    public static final String AFFILIATE_LINK = "https://www.aida.com.hk?ref=";

    public static final String PARTIAL_DESIGN_FILENAME = "PartialDesign";

    public static final String PARTIAL_DESIGN_PREVIEW_FILENAME = "Preview";

    public static final String senderEmail = "info@aida.com.hk";

}
