using Hotline.Share.Dtos.Settings;
using Hotline.Share.Requests;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Hotline.Share.Dtos.Snapshot;
internal class IndustryDto
{
}
public class IndustryItemsOutDto : IndustryOutDto
{
///
/// 审批部门Id
///
public string? ApproveOrgId { get; set; }
///
/// 审批部门名字
///
public string? ApproveOrgName { get; set; }
///
/// 市民发放红包金额(单位:分)
///
public int CitizenReadPackAmount { get; set; }
///
/// 网络员发放红包金额(单位:分)
///
public int GuiderReadPackAmount { get; set; }
///
/// 是否启用
///
public bool IsEnable { get; set; }
///
/// 排序
///
public int DisplayOrder { get; set; }
}
public class IndustryOutDto
{
///
/// Id
///
public string Id { get; set; }
///
/// 名字
///
public string Name { get; set; }
///
/// 帮助引导用语
///
public string? TxtHelpRemarks { get; set; }
///
/// 宫格说明文本
///
public string? TxtRemarks { get; set; }
///
/// 关怀说明
///
public string? TxtCareRemarks { get; set; }
///
/// 页面Url
///
public string? PageUrl { get; set; }
///
/// 关怀页面Url
///
public string? PageCareUrl { get; set; }
}
///
/// 行业集合入参
///
/// 名称
/// 审批部门
public record IndustryListInDto(string? Name, string? ApproveOrgName) : PagedRequest;
public class IndustryBaseOutDto
{
///
/// 行业信息
///
public IndustryOutDto Industry { get; set; }
///
/// 通知公告Id
///
public string? BulletinId { get; set; }
///
/// 作业区域集合
///
public IList AreaTree { get; set; } = [];
///
/// 附件集合
///
public IList Files { get; set; } = [];
///
/// 作业场所集合
///
public IReadOnlyList Workplace { get; set; }
///
/// 场所名称集合
///
public IReadOnlyList WorkplaceName { get; set; }
///
/// 作业类型集合
///
public IReadOnlyList JobType { get; set; }
///
/// 经营单位类别集合
///
public IReadOnlyList BusinessUnitType { get; set; }
}
public class AddIndustryDto
{
///
/// 行业名称
///
[Required]
public string Name { get; set; }
///
/// 标题追加信息
///
public string TitleSuffix { get; set; } = string.Empty;
///
/// 审批部门Id
///
public string? ApproveOrgId { get; set; }
///
/// 审批部门名字
///
public string? ApproveOrgName { get; set; }
///
/// 受理类型
///
public string AcceptType { get; set; } = string.Empty;
///
/// 受理类型代码
///
public string? AcceptTypeCode { get; set; }
///
/// 市民发放红包金额(单位:元)
///
[Required]
public int CitizenReadPackAmount { get; set; }
///
/// 网络员发放红包金额(单位:元)
///
[Required]
public int GuiderReadPackAmount { get; set; }
///
/// 是否启用
///
public bool IsEnable { get; set; }
///
/// 帮助引导用语
///
public string? TxtHelpRemarks { get; set; }
///
/// 宫格说明文本
///
public string TxtRemarks { get; set; } = string.Empty;
///
/// 关怀说明
///
public string TxtCareRemarks { get; set; }
///
/// 排序
///
public int DisplayOrder { get; set; } = 0;
///
/// 阶段性回复间隔时间(小时)
///
public int IntervalTime { get; set; } = 0;
///
/// 页面Url
///
public string PageUrl { get; set; }
///
/// 关怀页面Url
///
public string PageCareUrl { get; set; }
///
/// 关联宣传学习
/// 从字典中取"公告类型"
///
public string BulletinTypePublicityId { get; set; }
///
/// 关联宣传学习
/// 从字典中取"公告类型"
///
public string BulletinTypePublicityName { get; set; }
///
/// 关联操作指引
/// 从字典中取"公告类型"
///
public string BulletinTypeGuideId { get; set; }
///
/// 关联操作指引
/// 从字典中取"公告类型"
///
public string BulletinTypeGuideame { get; set; }
///
/// 背景图片 url
///
public string BackgroundImgUrl { get; set; }
///
/// Banner 图片 url
///
public string BannerImgUrl { get; set; }
///
/// 宫格图
///
public string CellImgUrl { get; set; }
///
/// 关怀宫格图
///
public string CareCellImgUrl { get; set; }
///
/// 附件集合(小程序上面可以下载的 doc 文件)
///
public IList Files { get; set; }
}