You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

68 regels
1.9 KiB

  1. using BPA.KitChen.GroupMeal.Application.BaseDto;
  2. using BPA.KitChen.GroupMeal.Application.Service.Authorization.Dtos;
  3. using BPA.KitChen.GroupMeal.Core.Entity;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace BPA.KitChen.GroupMeal.Application.Service.Authorization.Services
  10. {
  11. public interface IAuthorizationService
  12. {
  13. /// <summary>
  14. /// 分页店铺授权码
  15. /// </summary>
  16. /// <param name="input"></param>
  17. /// <returns></returns>
  18. Task<PageUtil> PageStoreAuthorization(PageInputBase input);
  19. /// <summary>
  20. /// 添加店铺授权码
  21. /// </summary>
  22. /// <returns></returns>
  23. Task<bool> AddStoreAuthorization(CreateOrUpDateStoreAuthorizationDto input);
  24. /// <summary>
  25. /// 修改店铺授权码
  26. /// </summary>
  27. /// <param name="id"></param>
  28. /// <returns></returns>
  29. Task<bool> UpdateStoreAuthorization(string id);
  30. Task<bool> UpdateStoreAuthTime(CreateOrUpDateStoreAuthorizationDto input);
  31. /// <summary>
  32. /// 删除店铺权限
  33. /// </summary>
  34. /// <param name="id"></param>
  35. /// <returns></returns>
  36. Task<bool> DelStoreAuthorization(string id);
  37. /// <summary>
  38. /// 查询店铺授权信息
  39. /// </summary>
  40. /// <param name="id"></param>
  41. /// <returns></returns>
  42. Task<BPA_StoreAuthorization> GetStoreAuthorizationById(string id);
  43. /// <summary>
  44. /// 查询店铺授权信息 更具KEY
  45. /// </summary>
  46. /// <param name="key"></param>
  47. /// <returns></returns>
  48. Task<BPA_StoreAuthorization> GetStoreAuthorizationByKey(string key);
  49. /// <summary>
  50. /// CodeFirst
  51. /// </summary>
  52. /// <param name="tableNames"></param>
  53. void CodeFirst();
  54. }
  55. }