123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464 |
- using Hotline.Share.Dtos.File;
- using Hotline.Share.Dtos.Settings;
- using Hotline.Share.Enums.Snapshot;
- using Hotline.Share.Requests;
- using Hotline.Share.Tools;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using XF.Utility.EnumExtensions;
- namespace Hotline.Share.Dtos.Snapshot;
- internal class IndustryDto
- {
- }
- public class IndustryDetailOutDto : IndustryItemsOutDto
- {
- /// <summary>
- /// 背景图片 url
- /// </summary>
- public string? BackgroundImgUrl { get; set; }
- /// <summary>
- /// Banner 图片 url
- /// </summary>
- public string? BannerImgUrl { get; set; }
- /// <summary>
- /// 宫格图
- /// </summary>
- public string? CellImgUrl { get; set; }
- /// <summary>
- /// 关怀宫格图
- /// </summary>
- public string? CareCellImgUrl { get; set; }
- /// <summary>
- /// 附件集合(小程序上面可以下载的 doc 文件)
- /// </summary>
- public IList<IndustryFileDto> Files { get; set; }
- }
- public class IndustryItemsOutDto : IndustryOutDto
- {
- /// <summary>
- /// 受理类型
- /// </summary>
- public string AcceptType { get; set; }
- /// <summary>
- /// 受理类型代码
- /// </summary>
- public string? AcceptTypeCode { get; set; }
- /// <summary>
- /// 标题追加信息
- /// </summary>
- public string? TitleSuffix { get; set; }
- /// <summary>
- /// 审批部门Id
- /// </summary>
- public string? ApproveOrgId { get; set; }
- /// <summary>
- /// 审批部门名字
- /// </summary>
- public string? ApproveOrgName { get; set; }
- /// <summary>
- /// 市民发放红包金额(单位:元)
- /// </summary>
- public double CitizenReadPackAmount { get; set; }
- /// <summary>
- /// 网络员发放红包金额(单位:元)
- /// </summary>
- public double GuiderReadPackAmount { get; set; }
- /// <summary>
- /// 是否启用
- /// </summary>
- public bool IsEnable { get; set; }
- /// <summary>
- /// 排序
- /// </summary>
- public int DisplayOrder { get; set; }
- }
- public class IndustryOutDto
- {
- /// <summary>
- /// Id
- /// </summary>
- public string Id { get; set; }
- /// <summary>
- /// 名字
- /// </summary>
- public string Name { get; set; }
- /// <summary>
- /// 帮助引导用语
- /// </summary>
- public string? TxtHelpRemarks { get; set; }
- /// <summary>
- /// 宫格说明文本
- /// </summary>
- public string? TxtRemarks { get; set; }
- /// <summary>
- /// 关怀说明
- /// </summary>
- public string? TxtCareRemarks { get; set; }
- /// <summary>
- /// 页面Url
- /// </summary>
- public string? PageUrl { get; set; }
- /// <summary>
- /// 关怀页面Url
- /// </summary>
- public string? PageCareUrl { get; set; }
- }
- /// <summary>
- /// 行业集合入参
- /// </summary>
- /// <param name="name">名称</param>
- /// <param name="departmentName">审批部门</param>
- public record IndustryListInDto(string? Name, string? ApproveOrgName) : PagedRequest;
- /// <summary>
- /// 行业线索集合入参
- /// </summary>
- /// <param name="CaseName">线索名称</param>
- /// <param name="IndustryName">行业名称</param>
- public record IndustryCaseItemInDto(string? CaseName, string? IndustryName) : PagedRequest;
- public class IndustryBaseOutDto
- {
- /// <summary>
- /// 行业信息
- /// </summary>
- public IndustryOutDto Industry { get; set; }
- /// <summary>
- /// 通知公告Id
- /// </summary>
- public string? BulletinId { get; set; }
- /// <summary>
- /// 作业区域集合
- /// </summary>
- public IList<SystemAreaOutDto> AreaTree { get; set; } = [];
- /// <summary>
- /// 附件集合
- /// </summary>
- public IList<IndustryFileDto> Files { get; set; } = [];
- /// <summary>
- /// 作业场所集合
- /// </summary>
- public IReadOnlyList<SystemDicDataOutDto> Workplace { get; set; }
- /// <summary>
- /// 场所名称集合
- /// </summary>
- public IReadOnlyList<SystemDicDataOutDto> WorkplaceName { get; set; }
- /// <summary>
- /// 作业类型集合
- /// </summary>
- public IReadOnlyList<SystemDicDataOutDto> JobType { get; set; }
- /// <summary>
- /// 经营单位类别集合
- /// </summary>
- public IReadOnlyList<SystemDicDataOutDto> BusinessUnitType { get; set; }
- }
- public class UpdateIndustryInDto : AddIndustryDto
- {
- /// <summary>
- /// Id
- /// </summary>
- [Required]
- public string Id { get; set; }
- }
- public class AddIndustryDto
- {
- /// <summary>
- /// 行业名称
- /// </summary>
- [Required]
- public string Name { get; set; }
- /// <summary>
- /// 标题追加信息
- /// </summary>
- public string TitleSuffix { get; set; } = string.Empty;
- /// <summary>
- /// 审批部门Id
- /// </summary>
- public string? ApproveOrgId { get; set; }
- /// <summary>
- /// 审批部门名字
- /// </summary>
- public string? ApproveOrgName { get; set; }
- /// <summary>
- /// 受理类型
- /// </summary>
- public string AcceptType { get; set; } = string.Empty;
- /// <summary>
- /// 受理类型代码
- /// </summary>
- public string? AcceptTypeCode { get; set; }
- /// <summary>
- /// 市民发放红包金额(单位:元)
- /// </summary>
- [Required]
- public int CitizenReadPackAmount { get; set; }
- /// <summary>
- /// 网络员发放红包金额(单位:元)
- /// </summary>
- [Required]
- public int GuiderReadPackAmount { get; set; }
- /// <summary>
- /// 是否启用
- /// </summary>
- public bool IsEnable { get; set; }
- /// <summary>
- /// App是否启用
- /// </summary>
- public bool IsAppEnable { get; set; }
- /// <summary>
- /// 帮助引导用语
- /// </summary>
- public string? TxtHelpRemarks { get; set; }
- /// <summary>
- /// 宫格说明文本
- /// </summary>
- public string TxtRemarks { get; set; } = string.Empty;
- /// <summary>
- /// 关怀说明
- /// </summary>
- public string TxtCareRemarks { get; set; }
- /// <summary>
- /// 排序
- /// </summary>
- public int DisplayOrder { get; set; } = 0;
- /// <summary>
- /// 阶段性回复间隔时间(小时)
- /// </summary>
- public int IntervalTime { get; set; } = 0;
- /// <summary>
- /// 页面Url
- /// </summary>
- public string PageUrl { get; set; }
- /// <summary>
- /// 关怀页面Url
- /// </summary>
- public string PageCareUrl { get; set; }
- /// <summary>
- /// 关联宣传学习
- /// 从字典中取"公告类型"
- /// </summary>
- public string BulletinTypePublicityId { get; set; }
- /// <summary>
- /// 关联宣传学习
- /// 从字典中取"公告类型"
- /// </summary>
- public string BulletinTypePublicityName { get; set; }
- /// <summary>
- /// 关联操作指引
- /// 从字典中取"公告类型"
- /// </summary>
- public string BulletinTypeGuideId { get; set; }
- /// <summary>
- /// 关联操作指引
- /// 从字典中取"公告类型"
- /// </summary>
- public string BulletinTypeGuideame { get; set; }
- /// <summary>
- /// 背景图片 url
- /// </summary>
- public string BackgroundImgUrl { get; set; }
- /// <summary>
- /// Banner 图片 url
- /// </summary>
- public string BannerImgUrl { get; set; }
- /// <summary>
- /// 宫格图
- /// </summary>
- public string CellImgUrl { get; set; }
- /// <summary>
- /// 关怀宫格图
- /// </summary>
- public string CareCellImgUrl { get; set; }
- /// <summary>
- /// 附件集合(小程序上面可以下载的 doc 文件)
- /// </summary>
- public IList<IndustryFileDto> Files { get; set; }
- }
- public class IndustryCaseItemOutDto : AddIndustryCaseDto
- {
- /// <summary>
- /// Id
- /// </summary>
- public string Id { get; set; }
- /// <summary>
- /// 行业名称
- /// </summary>
- public string IndustryName { get; set; }
- /// <summary>
- /// 市民发放红包金额(单位:元)
- /// </summary>
- public string CitizenReadPackAmountTxt => CitizenReadPackAmount.ToYuanFinance();
- /// <summary>
- /// 网络员发放红包金额(单位:元)
- /// </summary>
- public string GuiderReadPackAmountTxt => GuiderReadPackAmount.ToYuanFinance();
- }
- public class UpdateIndustryCaseDto : AddIndustryCaseDto
- {
- /// <summary>
- /// Id
- /// </summary>
- [Required]
- public string Id { get; set; }
- }
- public class AddIndustryCaseDto
- {
- /// <summary>
- /// 行业Id
- /// </summary>
- [Required]
- public string IndustryId { get; set; }
- /// <summary>
- /// 线索名称
- /// </summary>
- [Required]
- public string Name { get; set; }
- /// <summary>
- /// 市民发放红包金额(单位:元)
- /// </summary>
- public double CitizenReadPackAmount { get; set; }
- /// <summary>
- /// 网络员发放红包金额(单位:元)
- /// </summary>
- public double GuiderReadPackAmount { get; set; }
- /// <summary>
- /// 是否启用
- /// </summary>
- public bool IsEnable { get; set; }
- /// <summary>
- /// 排序
- /// </summary>
- public int DisplayOrder { get; set; }
- }
- /// <summary>
- /// 行业短信模板集合入参
- /// </summary>
- /// <param name="IndustryName">行业名称</param>
- public record SnapshotSMSTemplateItemsInDto(string? IndustryName) : PagedRequest;
- public class SnapshotSMSTemplateItemsOutDto : AddSnapshotSMSTemplateInDto
- {
- /// <summary>
- /// Id
- /// </summary>
- public string Id { get; set; }
- /// <summary>
- /// 审核状态
- /// </summary>
- public string StatusTxt => Status.GetDescription();
- /// <summary>
- /// 行业名称
- /// </summary>
- public string IndustryName { get; set; }
- }
- public class AddSnapshotSMSTemplateInDto
- {
- /// <summary>
- /// 行业Id
- /// </summary>
- [Required]
- public string IndustryId { get; set; }
- /// <summary>
- /// 模板内容
- /// </summary>
- [Required]
- public string Content { get; set; }
- /// <summary>
- /// 审核状态
- /// </summary>
- public ESnapshotSMSStatus Status { get; set; }
- /// <summary>
- /// 是否启用
- /// </summary>
- public bool IsEnable { get; set; }
- /// <summary>
- /// 是否公用
- /// </summary>
- public bool IsPublic { get; set; }
- /// <summary>
- /// 排序
- /// </summary>
- public int DisplayOrder { get; set; }
- }
|