Blame view

美国版/Food Labeling Management Code/Yi.Abp.Net8/module/food-labeling-us/FoodLabeling.Application.Contracts/IServices/IGroupAppService.cs 2.18 KB
4d328ec2   李曜臣   平台端报表reports,仪表盘D...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  using FoodLabeling.Application.Contracts.Dtos.Common;
  using FoodLabeling.Application.Contracts.Dtos.Group;
  using Microsoft.AspNetCore.Mvc;
  using Volo.Abp.Application.Dtos;
  using Volo.Abp.Application.Services;
  
  namespace FoodLabeling.Application.Contracts.IServices;
  
  /// <summary>
  /// 组织(Group)管理接口(fl_group
  /// </summary>
  public interface IGroupAppService : IApplicationService
  {
      /// <summary>
      /// 组织分页列表(与导出使用相同筛选条件)
      /// </summary>
10fd1324   李曜臣   5-17接口优化
17
18
19
20
      /// <remarks>
      /// 数据范围(按登录 Token):
      /// 管理员可见全部 Region;其它角色仅可见其 <c>userlocation</c> 绑定门店对应的组织(<c>location.Partner</c> + <c>location.GroupName</c>  <c>fl_group</c> 匹配)。
      /// </remarks>
4d328ec2   李曜臣   平台端报表reports,仪表盘D...
21
22
23
24
25
26
      /// <param name="input">分页与筛选;SkipCount 为页码(从 1 起)</param>
      Task<PagedResultWithPageDto<GroupGetListOutputDto>> GetListAsync(GroupGetListInputVo input);
  
      /// <summary>
      /// 组织详情
      /// </summary>
10fd1324   李曜臣   5-17接口优化
27
28
      /// <param name="id">主键(Guid,与 <c>fl_group.Id</c> 一致;约定路由 <c>{id:guid}</c>,避免与 <c>export-pdf</c> 等路径冲突)</param>
      Task<GroupGetOutputDto> GetAsync(Guid id);
4d328ec2   李曜臣   平台端报表reports,仪表盘D...
29
30
31
32
33
34
35
36
37
  
      /// <summary>
      /// 新增组织
      /// </summary>
      Task<GroupGetOutputDto> CreateAsync(GroupCreateInputVo input);
  
      /// <summary>
      /// 编辑组织
      /// </summary>
10fd1324   李曜臣   5-17接口优化
38
      Task<GroupGetOutputDto> UpdateAsync(Guid id, GroupUpdateInputVo input);
4d328ec2   李曜臣   平台端报表reports,仪表盘D...
39
40
41
42
  
      /// <summary>
      /// 删除组织(逻辑删除)
      /// </summary>
10fd1324   李曜臣   5-17接口优化
43
      Task DeleteAsync(Guid id);
4d328ec2   李曜臣   平台端报表reports,仪表盘D...
44
45
  
      /// <summary>
10fd1324   李曜臣   5-17接口优化
46
      /// 按列表相同筛选条件全量导出组织(Region)为 PDF(不分页;与 <see cref="GetListAsync"/> 相同筛选与 Token 数据范围;单次最多 5000 条)
4d328ec2   李曜臣   平台端报表reports,仪表盘D...
47
      /// </summary>
10fd1324   李曜臣   5-17接口优化
48
49
50
      /// <remarks>
      ///  <see cref="GetListAsync"/> 使用同一套 <c>BuildGroupJoinedQueryAsync</c>(含 <c>ResolveGroupScopeAsync</c>),导出行集与列表一致。
      /// </remarks>
a7684ddb   李曜臣   批量导入导出,批量编辑
51
52
      /// <param name="input">KeywordPartnerIdStateSorting;分页字段忽略</param>
      /// <returns>application/pdf</returns>
4d328ec2   李曜臣   平台端报表reports,仪表盘D...
53
54
      Task<IActionResult> ExportPdfAsync(GroupGetListInputVo input);
  }