package com.yuchen.saas.manage.system.api.dto.applet;

import com.thinkunion.park.service.common.constant.GroupAction;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

/**
 * @author zhouhanwei
 * @create 2024/1/4 17:04
 */
@Data
public class SaveApplyInfoDataReqDTO {

    @NotNull(groups = GroupAction.UpdateAction.class, message = "id不能为空")
    @Null(groups = GroupAction.InsertAction.class, message = "id必须为空")
    private Long id;

    /**
     * 应用名称
     */
    @ApiModelProperty(name = "appName", value = "应用名称")
    @NotBlank(message = "应用名称不能为空")
    private String appName;
    /**
     * 应用appId
     */
    @ApiModelProperty(name = "appId", value = "应用appId")
    @NotBlank(message = "appId不能为空")
    private String appId;
    /**
     * 类型（1：正式，2：测试）
     */
    @ApiModelProperty(name = "appFlag", value = "类型（1：正式，2：测试）")
    private String appFlag;

    /**
     * 企业名称
     */
    @ApiModelProperty(name = "companyName", value = "企业名称")
    private String companyName;

    /**
     * 绑定小程序的miniAppId
     */
    @ApiModelProperty(name = "miniAppId", value = "绑定小程序的miniAppId")
    private String miniAppId;

    /**
     * 绑定小程序的应用id
     */
    @ApiModelProperty(name = "miniApplyId", value = "绑定小程序的应用id")
    private Long miniApplyId;

    /**
     * 备注
     */
    @ApiModelProperty(name = "remark", value = "备注")
    private String remark;
}
