package com.zhongshu.card.client.model.projectAbout;

import com.zhongshu.card.client.type.PassWordDefaultType;
import com.zhongshu.card.client.type.PassWordType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author TRX
 * @date 2024/9/24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ProjectCommonConfigModel {

    @Schema(description = "数据ID")
    private String id;

    @Schema(description = "项目ID")
    private String projectOid;

    @Schema(description = "最小密码长度")
    private Integer minPassWordLength = 6;

    @Schema(description = "最小密码长度")
    private Integer maxPassWordLength = 20;

    @Schema(description = "密码字符组合类型")
    private PassWordType passWordType;

    @Schema(description = "默认密码设置类型")
    private PassWordDefaultType passWordDefaultType;

    @Schema(description = "这样的默认密码")
    private String defaultPassWord;

    @Schema(description = "默认用户头像")
    private String defaultUserHead;

    // --------------游客许可 ---------------
    @Schema(description = "允许游客注册")
    private Boolean isAllowRegister = Boolean.FALSE;

    @Schema(description = "允许游客消费")
    private Boolean isAllowConsume = Boolean.FALSE;

    @Schema(description = "用户协议")
    private String userAgreement = "";

    @Schema(description = "隐私政策")
    private String privacyPolicy = "";

}
