package com.xunhong.erp.turbo.api.infra.dto.common;

import com.alibaba.cola.dto.DTO;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.xunhong.erp.turbo.api.infra.dto.enums.SettingKeyEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@JsonTypeName("WX_MA_CODE_UPLOAD_CONFIG")
@Schema(title = "小程序代码上传配置")
@EqualsAndHashCode(callSuper = true)
public class WxMaCodeUploadConfigValue extends DTO implements SettingValue {
	@Schema(title = "小程序APPID", requiredMode = Schema.RequiredMode.REQUIRED)
	private String appId;
	@Schema(title = "当前版本号", requiredMode = Schema.RequiredMode.REQUIRED)
	private String version;
	@Schema(title = "更新描述", requiredMode = Schema.RequiredMode.REQUIRED)
	private String desc;
	@Schema(title = "上传IP白名单", requiredMode = Schema.RequiredMode.REQUIRED)
	private String ipWhiteList;
	@Schema(title = "页面路径", requiredMode = Schema.RequiredMode.REQUIRED)
	private String pagePath;
	@Schema(title = "小程序订单中心path", requiredMode = Schema.RequiredMode.REQUIRED)
	private String orderCenterPath;
	@Schema(title = "小程序代码上传密钥", requiredMode = Schema.RequiredMode.REQUIRED)
	private String codeUploadKey;

	@Override
	public SettingKeyEnum getSettingKey() {
		return SettingKeyEnum.WX_MA_CODE_UPLOAD_CONFIG;
	}

}
