From c97916f276a328fa70696a8582dc0c23144424f9 Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期三, 06 八月 2025 16:59:32 +0800 Subject: [PATCH] feat:企业开发 --- FlexJobApi.Core/Models/User/Enterprises/Queries/GetEnterprisesQuery.cs | 86 ++++++++++++++++++++++++++++++++++++++----- 1 files changed, 76 insertions(+), 10 deletions(-) diff --git a/FlexJobApi.Core/Models/User/Enterprises/Queries/GetEnterprisesQuery.cs b/FlexJobApi.Core/Models/User/Enterprises/Queries/GetEnterprisesQuery.cs index b52c815..668691b 100644 --- a/FlexJobApi.Core/Models/User/Enterprises/Queries/GetEnterprisesQuery.cs +++ b/FlexJobApi.Core/Models/User/Enterprises/Queries/GetEnterprisesQuery.cs @@ -1,4 +1,6 @@ -锘縰sing MediatR; +锘縰sing Mapster; +using MediatR; +using Newtonsoft.Json; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; @@ -26,7 +28,7 @@ } /// <summary> - /// 鏌ヨ浼佷笟淇℃伅鍒嗛〉鍒楄〃鏁版嵁 + /// 鏌ヨ浼佷笟淇℃伅鍒嗛〉鍒楄〃鏁版嵁-缁撴灉-椤� /// </summary> public class GetEnterprisesQueryResultItem { @@ -35,6 +37,76 @@ /// </summary> public Guid Id { get; set; } + /// <summary> + /// 鑱旂郴浜� + /// </summary> + public string Contacts { get; set; } + + /// <summary> + /// 鑱旂郴鐢佃瘽 + /// </summary> + public string ContactNumber { get; set; } + + /// <summary> + /// 鎵�鍦ㄧ渷浠絀d + /// </summary> + public Guid? ProvinceId { get; set; } + + /// <summary> + /// 鎵�鍦ㄧ渷浠� + /// </summary> + public DictionaryDataQueryResult Province { get; set; } + + /// <summary> + /// 鎵�鍦ㄥ煄甯侷d + /// </summary> + public Guid? CityId { get; set; } + + /// <summary> + /// 鎵�鍦ㄥ煄甯� + /// </summary> + public DictionaryDataQueryResult City { get; set; } + + /// <summary> + /// 鎵�灞炶涓欼d + /// </summary> + public Guid? IndustryTypeId { get; set; } + + /// <summary> + /// 鎵�灞炶涓� + /// </summary> + public DictionaryDataQueryResult IndustryType { get; set; } + + /// <summary> + /// 鏄惁宸叉牎楠岄摱琛岃处鎴� + /// </summary> + [JsonIgnore] + public bool IsCheckedBankCard { get; set; } + + /// <summary> + /// 瀹炲悕閫氶亾 + /// </summary> + [JsonIgnore] + public EnumRealAccess? RealAccess { get; set; } + + /// <summary> + /// 鐭俊閫氶亾 + /// </summary> + [JsonIgnore] + public EnumSmsAccess? SmsAccess { get; set; } + + /// <summary> + /// 鏄惁宸查厤缃� + /// </summary> + [AdaptIgnore] + public bool IsConfigured => IsCheckedBankCard && RealAccess.HasValue && SmsAccess.HasValue; + } + + /// <summary> + /// 鏌ヨ浼佷笟淇℃伅鍒嗛〉鍒楄〃鏁版嵁-缁撴灉-椤�-璁よ瘉 + /// </summary> + public class GetEnterprisesQueryResultItemAuth + { /// <summary> /// 浼佷笟鍏ㄧО /// </summary> @@ -51,14 +123,8 @@ public string SocietyCreditCode { get; set; } /// <summary> - /// 鑱旂郴浜� + /// 鏄惁瀹炲悕 /// </summary> - public string Contacts { get; set; } - - /// <summary> - /// 鑱旂郴鐢佃瘽 - /// </summary> - public string ContactNumber { get; set; } - + public bool IsReal { get; set; } } } -- Gitblit v1.9.1