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_CONFIG")
@Schema(title = "分类创建")
@EqualsAndHashCode(callSuper = true)
public class WxMaConfigValue extends DTO implements SettingValue {
	@Schema(title = "小程序名称", requiredMode = Schema.RequiredMode.REQUIRED)
	private String wxMaName;
	@Schema(title = "小程序原始ID", requiredMode = Schema.RequiredMode.REQUIRED)
	private String wxMaOriginalId;
	@Schema(title = "小程序Logo", requiredMode = Schema.RequiredMode.REQUIRED)
	private String wxMaLogo;
	@Schema(title = "校验文件", requiredMode = Schema.RequiredMode.REQUIRED)
	private String wxMaCheckFile;
	@Schema(title = "AppID(小程序ID)", requiredMode = Schema.RequiredMode.REQUIRED)
	private String appId;
	@Schema(title = "AppSecret(小程序密钥)", requiredMode = Schema.RequiredMode.REQUIRED)
	private String appSecret;

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