sunpengfei
2025-08-07 8eee16cace4ee81f4ddff2a1e265db792178e70e
FlexJobApi.Core/Models/User/Enterprises/Commands/SaveEnterpriseCommand.cs
@@ -1,4 +1,5 @@
using System;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
@@ -14,40 +15,57 @@
    public class SaveEnterpriseCommand : SaveDataCommand
    {
        /// <summary>
        /// 企业认证
        /// 企业全称
        /// </summary>
        [Required]
        public SaveEnterpriseCommandAuth EnterpriseAuth { get; set; }
        [MaxLength(128)]
        public string EnterpriseName { get; set; }
        /// <summary>
        /// 所在省份Id
        /// 统一社会信用代码
        /// </summary>
        public Guid? ProvinceId { get; set; }
        [Required]
        [MaxLength(18)]
        public string SocietyCreditCode { get; set; }
        /// <summary>
        /// 所在省份
        /// 法人姓名
        /// </summary>
        public DictionaryData Province { get; set; }
        [MaxLength(32)]
        public string LegalPerson { get; set; }
        /// <summary>
        /// 所在城市Id
        /// 法人身份证号
        /// </summary>
        public Guid? CityId { get; set; }
        [MaxLength(18)]
        public string LegalIdentity { get; set; }
        /// <summary>
        /// 所在城市
        /// 企业认证
        /// </summary>
        public DictionaryData City { get; set; }
        [Newtonsoft.Json.JsonIgnore, Swashbuckle.AspNetCore.Annotations.SwaggerIgnore]
        public SaveEnterpriseCommandAuth EnterpriseAuth => new SaveEnterpriseCommandAuth
        {
            EnterpriseName = EnterpriseName,
            SocietyCreditCode = SocietyCreditCode,
            LegalPerson = LegalPerson,
            LegalIdentity = LegalIdentity,
        };
        /// <summary>
        /// 所属行业Id
        /// 所在省份编号
        /// </summary>
        public Guid? IndustryTypeId { get; set; }
        public string ProvinceCode { get; set; }
        /// <summary>
        /// 所属行业
        /// 所在城市编号
        /// </summary>
        public DictionaryData IndustryType { get; set; }
        public string CityCode { get; set; }
        /// <summary>
        /// 所属行业编号
        /// </summary>
        public string IndustryTypeCode { get; set; }
        /// <summary>
        /// 主营业务