ShopService.java 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. package com.caimei.service.auth;
  2. import com.caimei.model.ResponseJson;
  3. import com.caimei.model.dto.ShopInfoDto;
  4. import com.caimei.model.po.UserPo;
  5. import com.caimei.model.vo.*;
  6. import com.github.pagehelper.PageInfo;
  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. * @param listType 列表类型:1供应商列表,2审核列表
  18. * @param shopName 供应商名称
  19. * @param loginAccount
  20. * @param shopType 供应商类型:1品牌方,2代理商
  21. * @param infoId 品牌信息Id
  22. * @param mobile 手机号
  23. * @param linkMan 联系人
  24. * @param lowerAuditStatus 下级审核状态,0未完成审核,1已完成审核
  25. * @param pageNum 第几页
  26. * @param pageSize 一页多少条
  27. * @return PageInfo<ShopVo>
  28. */
  29. ResponseJson<PageInfo<ShopListVo>> getShopList(Integer listType, String shopName, String loginAccount, Integer shopType, Integer infoId, String mobile, String linkMan, Integer lowerAuditStatus, Integer sendStatus, Integer pageNum, Integer pageSize);
  30. /**
  31. * 更新供应商状态
  32. * @param authUserId 供应商用户id
  33. * @param status 供应商状态
  34. * @return ResponseJson
  35. */
  36. ResponseJson updateShopStatus(Integer authUserId, Integer status);
  37. /**
  38. * 重置供应商密码
  39. * @param authUserId 供应商用户id
  40. * @return ResponseJson
  41. */
  42. ResponseJson resetShopPassword(Integer authUserId);
  43. /**
  44. * 添加供应商
  45. * @param shop {
  46. * shopType 供应商类型:1代理商,2品牌方
  47. * shopName 供应商名称
  48. * mobile 手机号
  49. * linkMan 联系人
  50. * shopStatus 供应商状态:0停用 1启用
  51. * createBy 创建人用户id
  52. * }
  53. * @param shopInfoList
  54. */
  55. ResponseJson saveShop(UserPo shop, List<ShopInfoDto> shopInfoList);
  56. /**
  57. * 获取供应商回显数据
  58. * @param authUserId 供应商用户id
  59. * @return ShopVo
  60. */
  61. ResponseJson<ShopFormVo> getShopFormData(Integer authUserId);
  62. /**
  63. * 品牌信息列表
  64. * @param authUserId 供应商用户id
  65. * @return AuthVo
  66. */
  67. ResponseJson<List<ShopInfoVo>> getShopInfoList(Integer authUserId);
  68. /**
  69. * 产地国家列表
  70. * @return CountryVo
  71. */
  72. ResponseJson<List<CountryVo>> getCountryList();
  73. /**
  74. * 用户反馈列表
  75. * @param authUserId 供应商用户id
  76. * @param authParty
  77. * @param mobile
  78. * @param handleStatus
  79. * @param pageNum
  80. * @param pageSize
  81. * @return
  82. */
  83. ResponseJson<PageInfo<FeedbackVo>> getFeedbackList(Integer authUserId, String authParty, String mobile, Integer handleStatus, Integer pageNum, Integer pageSize);
  84. /**
  85. * 用户反馈表单数据
  86. * @param feedbackId 反馈id
  87. * @return
  88. */
  89. ResponseJson<FeedbackVo> getFeedbackFormData(Integer feedbackId);
  90. /**
  91. * 处理用户反馈
  92. * @param feedbackId 反馈id
  93. * @param handleResult 处理结果
  94. * @return
  95. */
  96. ResponseJson handleFeedback(Integer feedbackId, String handleResult);
  97. /**
  98. * 根据供应商id查询供应商下所有品牌
  99. * @param authUserId 供应商id
  100. * @return
  101. */
  102. List<String> getShopBrands(Integer authUserId);
  103. /**
  104. * 发送验证码
  105. * @param mobile
  106. * @return
  107. */
  108. ResponseJson sendVerifyCode(String mobile);
  109. /**
  110. * 更改手机号
  111. */
  112. ResponseJson changeMobile(Integer authUserId, String oldMobile, String verifyCode, String newMobile);
  113. /**
  114. * 绑定登录账号
  115. */
  116. ResponseJson bindLoginAccount(Integer authUserId, String mobile, String verifyCode, String loginAccount);
  117. /**
  118. * 更新供应商下所有机构授权牌
  119. * @param authUserId
  120. * @return
  121. */
  122. ResponseJson updateAllAuthImage(Integer authUserId);
  123. /**
  124. * 更改联系人
  125. */
  126. ResponseJson changeLinkMan(Integer authUserId, String linkMan);
  127. /**
  128. * 更改logo
  129. */
  130. ResponseJson changeLogo(Integer authUserId, String logo);
  131. /**
  132. * 保存供应商品牌信息
  133. * @param authUserId
  134. * @param shopInfo
  135. * @return
  136. */
  137. ResponseJson saveShopInfo(Integer authUserId, ShopInfoDto shopInfo);
  138. /**
  139. * 删除供应商品牌信息
  140. */
  141. ResponseJson deleteShopInfo(Integer authUserId, Integer infoId);
  142. }