TrainingFileUploadInputVo.cs
2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
using FoodLabeling.Application.Contracts.Dtos.Common;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace FoodLabeling.Application.Contracts.Dtos.Training;
public class TrainingFileUploadInputVo : ITrainingFileScopeInput
{
[FromForm(Name = "file")]
public IFormFile File { get; set; } = default!;
[FromForm(Name = "categoryId")]
public string CategoryId { get; set; } = string.Empty;
[FromForm(Name = "orderNum")]
public int OrderNum { get; set; }
/// <summary>适用 Company:ALL / SPECIFIED</summary>
[FromForm(Name = "appliedPartnerType")]
public string? AppliedPartnerType { get; set; }
/// <summary>适用 Company(<c>fl_partner.Id</c>);可含 <c>ALL</c></summary>
[FromForm(Name = "partnerIds")]
public List<string>? PartnerIds { get; set; }
/// <summary>与 <see cref="PartnerIds"/> 相同;可含 <c>ALL</c></summary>
[FromForm(Name = "companyIds")]
public List<string>? CompanyIds { get; set; }
/// <summary>适用 Region:ALL / SPECIFIED</summary>
[FromForm(Name = "appliedRegionType")]
public string? AppliedRegionType { get; set; }
/// <summary>适用 Region(<c>fl_group.Id</c>);与 <see cref="GroupIds"/> 合并;可含 <c>ALL</c></summary>
[FromForm(Name = "regionIds")]
public List<string>? RegionIds { get; set; }
/// <summary>与 <see cref="RegionIds"/> 相同;可含 <c>ALL</c></summary>
[FromForm(Name = "groupIds")]
public List<string>? GroupIds { get; set; }
/// <summary>适用 Location:ALL / SPECIFIED</summary>
[FromForm(Name = "availabilityType")]
public string? AvailabilityType { get; set; }
/// <summary>适用 Location:ALL / SPECIFIED(<see cref="AvailabilityType"/> 别名)</summary>
[FromForm(Name = "appliedLocationType")]
public string? AppliedLocationType { get; set; }
/// <summary>适用门店(<c>location.Id</c>);可含 <c>ALL</c></summary>
[FromForm(Name = "locationIds")]
public List<string>? LocationIds { get; set; }
}