ShopService.java 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. package com.caimei.service.auth;
  2. import com.caimei.model.ResponseJson;
  3. import com.caimei.model.dto.ShopInfoDto;
  4. import com.caimei.model.vo.*;
  5. import com.github.pagehelper.PageInfo;
  6. import org.springframework.web.multipart.MultipartFile;
  7. import java.util.List;
  8. /**
  9. * Description
  10. *
  11. * @author : Aslee
  12. * @date : 2021/5/11
  13. */
  14. public interface ShopService {
  15. /**
  16. * 供应商列表数据
  17. *
  18. *
  19. * @param listType 列表类型:1供应商列表,2审核列表
  20. * @param shopName 供应商名称
  21. * @param loginAccount
  22. * @param shopType 供应商类型:1品牌方,2代理商
  23. * @param brandId 所属品牌Id
  24. * @param mobile 手机号
  25. * @param linkMan 联系人
  26. * @param lowerAuditStatus 下级审核状态,0未完成审核,1已完成审核
  27. * @param pageNum 第几页
  28. * @param pageSize 一页多少条
  29. * @return PageInfo<ShopVo>
  30. */
  31. ResponseJson<PageInfo<ShopListVo>> getShopList(Integer listType, String shopName, String loginAccount, Integer shopType, Integer brandId, String mobile, String linkMan, Integer lowerAuditStatus, Integer sendStatus, Integer pageNum, Integer pageSize);
  32. /**
  33. * 更新供应商状态
  34. * @param authUserId 供应商用户id
  35. * @param status 供应商状态
  36. * @return ResponseJson
  37. */
  38. ResponseJson updateShopStatus(Integer authUserId, Integer status);
  39. /**
  40. * 重置供应商密码
  41. * @param authUserId 供应商用户id
  42. * @return ResponseJson
  43. */
  44. ResponseJson resetShopPassword(Integer authUserId);
  45. /**
  46. * 上传文件
  47. *
  48. * @param authUserId 供应商用户id
  49. * @param brandId :品牌id
  50. * @param file 上传文件
  51. * @return
  52. */
  53. ResponseJson<AuthFileVo> uploadFile(Integer authUserId, Integer brandId, MultipartFile file);
  54. /**
  55. * 添加供应商
  56. * @param shopSaveDto {
  57. * shopType 供应商类型:1代理商,2品牌方
  58. * brandId 品牌id
  59. * shopName 供应商名称
  60. * mobile 手机号
  61. * linkMan 联系人
  62. * countryId 产地国家id
  63. * brandAuthLogo 品牌授权logo
  64. * shopStatus 供应商状态:0停用 1启用
  65. * securityLink 官网认证链接
  66. * statementType 代理声明类型:1弹窗 2链接 3图片 4文件(.doc .ppt .pdf)
  67. * statementContent 声明弹窗内容
  68. * statementLink 声明链接
  69. * statementImage 声明图片
  70. * statementFileId 声明文件id
  71. * createBy 创建人用户id
  72. * }
  73. * @param logo
  74. * @param qrCodeImage
  75. * @param wxAccountType
  76. * @param appId
  77. * @param appSecret
  78. * @param shopInfoList
  79. */
  80. ResponseJson saveShop(Integer authUserId, Integer shopType, String shopName, String mobile, String linkMan, Integer shopStatus, String logo, String qrCodeImage, Integer wxAccountType, String appId, String appSecret, Integer createBy, List<ShopInfoDto> shopInfoList);
  81. /**
  82. * 获取供应商回显数据
  83. * @param authUserId 供应商用户id
  84. * @return ShopVo
  85. */
  86. ResponseJson<ShopFormVo> getShopFormData(Integer authUserId);
  87. /**
  88. * 根据供应商用户id删除代理声明文件
  89. */
  90. void deleteFile(Integer authUserId,Integer brandId);
  91. /**
  92. * 品牌列表
  93. * @param type 1品牌方品牌列表,2代理商品牌列表
  94. * @param authUserId 供应商用户id
  95. * @return AuthVo
  96. */
  97. ResponseJson<List<BrandVo>> getBrandList(Integer type, Integer authUserId);
  98. /**
  99. * 产地国家列表
  100. * @return CountryVo
  101. */
  102. ResponseJson<List<CountryVo>> getCountryList();
  103. /**
  104. * 用户反馈列表
  105. * @param authUserId 供应商用户id
  106. * @param clubName
  107. * @param mobile
  108. * @param handleStatus
  109. * @param pageNum
  110. * @param pageSize
  111. * @return
  112. */
  113. ResponseJson<PageInfo<FeedbackVo>> getFeedbackList(Integer authUserId, String clubName, String mobile, Integer handleStatus, Integer pageNum, Integer pageSize);
  114. /**
  115. * 用户反馈表单数据
  116. * @param feedbackId 反馈id
  117. * @return
  118. */
  119. ResponseJson<FeedbackVo> getFeedbackFormData(Integer feedbackId);
  120. /**
  121. * 处理用户反馈
  122. * @param feedbackId 反馈id
  123. * @param handleResult 处理结果
  124. * @return
  125. */
  126. ResponseJson handleFeedback(Integer feedbackId, String handleResult);
  127. /**
  128. * 根据供应商id查询供应商下所有品牌
  129. * @param authUserId 供应商id
  130. * @return
  131. */
  132. List<String> getShopBrands(Integer authUserId);
  133. /**
  134. * 发送验证码
  135. * @param mobile
  136. * @return
  137. */
  138. ResponseJson sendVerifyCode(String mobile);
  139. /**
  140. * 更改手机号
  141. */
  142. ResponseJson changeMobile(Integer authUserId, String oldMobile, String verifyCode, String newMobile);
  143. /**
  144. * 绑定登录账号
  145. */
  146. ResponseJson bindLoginAccount(Integer authUserId, String mobile, String verifyCode, String loginAccount);
  147. /**
  148. * 更新供应商下所有机构授权牌
  149. * @param authUserId
  150. * @return
  151. */
  152. ResponseJson updateAllAuthImage(Integer authUserId);
  153. }