using Myshipping.Core; using System; using System.ComponentModel.DataAnnotations; namespace Myshipping.Core.Service { /// /// 接口授权输入参数 /// public class DjyApiAuthInput { /// /// 接口代码 /// public virtual string ApiCode { get; set; } /// /// 接口名称 /// public virtual string ApiName { get; set; } ///// ///// 接口KEY ///// //public virtual string ApiKey { get; set; } ///// ///// 接口秘钥 ///// //public virtual string ApiSecret { get; set; } /// /// 有效截止日期 /// public virtual DateTime? ExpireDate { get; set; } /// /// 租户Id /// public virtual long TenantId { get; set; } /// /// 租户名称 /// public virtual string TenantName { get; set; } /// /// 用户ID /// public virtual long UserId { get; set; } /// /// 用户代码 /// public virtual string UserCode { get; set; } /// /// 用户姓名 /// public virtual string UserName { get; set; } } /// /// 接口授权修改保存参数 /// public class SaveDjyApiAuthInput : DjyApiAuthInput { /// /// 主键Id /// [Required(ErrorMessage = "主键Id不能为空")] public long Id { get; set; } } /// /// 接口授权获取(删除)输入参数 /// public class GetDjyApiAuthInput { /// /// 主键Id /// [Required(ErrorMessage = "主键Id不能为空")] public long Id { get; set; } } /// /// 接口授权查询输入参数 /// public class QueryDjyApiAuthInput : PageInputBase { /// /// 接口代码 /// public virtual string ApiCode { get; set; } /// /// 接口名称 /// public virtual string ApiName { get; set; } /// /// 禁用标志 /// public virtual bool? IsDisable { get; set; } /// /// 租户名称 /// public virtual string TenantName { get; set; } /// /// 用户姓名 /// public virtual string UserName { get; set; } } }