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_MESSAGE_PUSH_CONFIG")
@Schema(title = "公众号消息推送配置")
@EqualsAndHashCode(callSuper = true)
public class WxMpMessagePushConfigValue extends DTO implements SettingValue {
	@Schema(title = "Token(令牌)", requiredMode = Schema.RequiredMode.REQUIRED)
	private String token;
	@Schema(title = "EncodingAESKey", requiredMode = Schema.RequiredMode.REQUIRED)
	private String encodingAESKey;
	@Schema(title = "消息加密方式", requiredMode = Schema.RequiredMode.REQUIRED)
	private String msgEncryptMode;
	@Schema(title = "数据格式", requiredMode = Schema.RequiredMode.REQUIRED)
	private String dataFormat;
	@Schema(title = "IP白名单", requiredMode = Schema.RequiredMode.REQUIRED)
	private String ipWhiteList;
	@Schema(title = "URL(服务器地址)", requiredMode = Schema.RequiredMode.REQUIRED)
	private String url;

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