AuthService.java 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. package com.caimei.service.auth;
  2. import com.caimei.model.ResponseJson;
  3. import com.caimei.model.po.CmBrandAuthPo;
  4. import com.caimei.model.vo.AuthFormVo;
  5. import com.caimei.model.vo.AuthVo;
  6. import com.caimei.model.vo.TemplateVo;
  7. import com.github.pagehelper.PageInfo;
  8. import org.springframework.web.multipart.MultipartFile;
  9. import javax.servlet.http.HttpServletResponse;
  10. import java.util.List;
  11. /**
  12. * Description
  13. *
  14. * @author : Aslee
  15. * @date : 2021/5/11
  16. */
  17. public interface AuthService {
  18. /**
  19. * 授权列表
  20. *
  21. * @param listType 列表类型:1授权列表,2授权审核列表
  22. * @param authUserId 供应商用户id
  23. * @param authParty 授权机构
  24. * @param mobile
  25. * @param status 上线状态:0已下线,1已上线,2待上线
  26. * @param auditStatus 审核状态:0审核未通过,1审核通过,2待审核
  27. * @param lowerAuditStatus 商品信息审核状态:0未完成审核,1已完成审核
  28. * @param shopAuditStatus 供应商审核状态:0审核未通过,1审核通过,2待审核
  29. * @param pageNum 第几页
  30. * @param pageSize 一页多少条
  31. * @return AuthVo
  32. */
  33. ResponseJson<PageInfo<AuthVo>> getAuthList(Integer listType, Integer authUserId, String authParty, String mobile, Integer status, Integer auditStatus, Integer lowerAuditStatus, Integer shopAuditStatus, Integer sendStatus, Integer pageNum, Integer pageSize);
  34. /**
  35. * 更新授权状态
  36. *
  37. * @param authId 授权id
  38. * @param status 授权状态:0停用 1启用
  39. * @return ResponseJson
  40. */
  41. ResponseJson updateAuthStatus(Integer authId, Integer status);
  42. /**
  43. * 删除授权
  44. * @param authId 授权id
  45. * @return ResponseJson
  46. */
  47. ResponseJson deleteAuth(Integer authId);
  48. /**
  49. * 添加/编辑授权
  50. *
  51. * @param auth 授权机构
  52. * @param bannerList 轮播图列表
  53. * @param source 来源:1供应商保存,2机构保存
  54. * @return ResponseJson
  55. */
  56. ResponseJson saveAuth(CmBrandAuthPo auth, List<String> bannerList, boolean importFlag, Integer source);
  57. /**
  58. * 审核品牌授权
  59. *
  60. * @param authId 授权id
  61. * @param auditStatus 审核状态
  62. * @param invalidReason 审核不通过原因
  63. * @param auditBy 审核人用户id
  64. * @param source
  65. * @return ResponseJson
  66. */
  67. ResponseJson auditAuth(Integer authId, Integer auditStatus, String invalidReason, Integer auditBy, Integer source);
  68. /**
  69. * 导入excel中的授权机构和商品数据
  70. * @param file excel表格
  71. * @param authUserId 供应商用户id
  72. * @param createBy
  73. * @return
  74. */
  75. ResponseJson importDataByExcel(MultipartFile file, Integer authUserId, Integer createBy);
  76. /**
  77. * 授权机构回显数据
  78. * @param authId 机构id
  79. * @return
  80. */
  81. ResponseJson<AuthFormVo> getAuthFormData(Integer authId);
  82. /**
  83. * 机构下拉框列表
  84. */
  85. ResponseJson<List<AuthVo>> getAuthSelectList(Integer authUserId);
  86. /**
  87. * ldm门店图/备注导入
  88. * @param authUserId
  89. * @return
  90. */
  91. ResponseJson importLdmImage(Integer authUserId);
  92. /**
  93. * 生成机构授权牌
  94. * @param auth
  95. * @return
  96. */
  97. String generateAuthImage(TemplateVo authTemplate, CmBrandAuthPo auth);
  98. /**
  99. * 添加水印
  100. */
  101. String addWaterMark(String image,Integer type);
  102. /**
  103. * 更改查看标记
  104. * @param authId
  105. * @return
  106. */
  107. ResponseJson checkAuth(Integer authId);
  108. }