namespace Admin.NET.Core.Service;
public class JsCode2SessionInput
{
///
/// JsCode
///
[Required(ErrorMessage = "JsCode不能为空"), MinLength(10, ErrorMessage = "JsCode错误")]
public string JsCode { get; set; }
}
public class WxPhoneInput : WxOpenIdLoginInput
{
///
/// Code
///
[Required(ErrorMessage = "Code不能为空"), MinLength(10, ErrorMessage = "Code错误")]
public string Code { get; set; }
}
public class WxOpenIdLoginInput
{
///
/// OpenId
///
[Required(ErrorMessage = "微信标识不能为空"), MinLength(10, ErrorMessage = "微信标识错误")]
public string OpenId { get; set; }
}
public class WxPhoneLoginInput
{
///
/// 电话号码
///
[DataValidation(ValidationTypes.PhoneNumber, ErrorMessage = "电话号码错误")]
public string PhoneNumber { get; set; }
}
public class SendSubscribeMessageInput
{
///
/// 订阅模板Id
///
[Required(ErrorMessage = "订阅模板Id不能为空")]
public string TemplateId { get; set; }
///
/// 接收者的OpenId
///
[Required(ErrorMessage = "接收者的OpenId不能为空")]
public string ToUserOpenId { get; set; }
///
/// 模板内容,格式形如 { "key1": { "value": any }, "key2": { "value": any } }的object
///
[Required(ErrorMessage = "模板内容不能为空")]
public Dictionary Data { get; set; }
///
/// 跳转小程序类型
///
public string MiniprogramState { get; set; }
///
/// 语言类型
///
public string Language { get; set; }
///
/// 点击模板卡片后的跳转页面(仅限本小程序内的页面),支持带参数(示例pages/app/index?foo=bar)
///
public string MiniProgramPagePath { get; set; }
}
public class AddSubscribeMessageTemplateInput
{
///
/// 模板标题Id
///
[Required(ErrorMessage = "模板标题Id不能为空")]
public string TemplateTitleId { get; set; }
///
/// 模板关键词列表,例如 [3,5,4]
///
[Required(ErrorMessage = "模板关键词列表不能为空")]
public List KeyworkIdList { get; set; }
///
/// 服务场景描述,15个字以内
///
[Required(ErrorMessage = "服务场景描述不能为空")]
public string SceneDescription { get; set; }
}