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_MP_CONFIG")
@Schema(title = "微信公众号配置")
@EqualsAndHashCode(callSuper = true)
public class WxMpConfigValue extends DTO implements SettingValue {
	@Schema(title = "公众号名称", requiredMode = Schema.RequiredMode.REQUIRED)
	private String wxMpName;
	@Schema(title = "公众号原始ID", requiredMode = Schema.RequiredMode.REQUIRED)
	private String wxMpOriginalId;
	@Schema(title = "公众号Logo", requiredMode = Schema.RequiredMode.REQUIRED)
	private String wxMpLogo;
	@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_MP_CONFIG;
	}
}
