RegisterService.java 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. package com.caimei365.user.service;
  2. import com.caimei365.user.model.ResponseJson;
  3. import com.caimei365.user.model.dto.*;
  4. import com.caimei365.user.model.vo.ClubTemporaryVo;
  5. import org.springframework.http.HttpHeaders;
  6. import org.springframework.web.bind.annotation.RequestHeader;
  7. /**
  8. * Description
  9. *
  10. * @author : Charles
  11. * @date : 2021/3/8
  12. */
  13. public interface RegisterService {
  14. /**
  15. * 检查账号可以注册
  16. *
  17. * @param mobile 手机号
  18. * @return sucess
  19. */
  20. ResponseJson registerCheck(String mobile);
  21. /**
  22. * 普通机构入驻(注册)
  23. *
  24. * @param clubRegisterDto ClubRegisterDto{
  25. * source 注册来源: 0网站 1小程序
  26. * userName 用户名
  27. * bindMobile 企业绑定手机号
  28. * password 密码
  29. * unionId 微信unionId
  30. * nickName 微信昵称
  31. * avatarUrl 微信头像(旧:headimgurl)
  32. * passWordConfirm 用户确认密码
  33. * smsCode 短信验证码(旧:activationCode)
  34. * isAgreed 是否同意勾选同意协议,1是,其他否
  35. * }
  36. * @param headers HttpHeaders
  37. * @return void
  38. */
  39. ResponseJson clubRegister(ClubRegisterDto clubRegisterDto, HttpHeaders headers);
  40. /**
  41. * 普通机构升级会员机构
  42. *
  43. * @param upgradeDto ClubUpgradeDto:{
  44. * clubId 机构ID
  45. * userId 用户ID
  46. * name 机构名称
  47. * shortName 机构简称
  48. * contractEmail 邮箱(contractEmail1)
  49. * contractPhone 固定电话
  50. * linkMan 联系人(linkMan1)
  51. * provinceId 省Id
  52. * cityId 市Id
  53. * townId 县区Id
  54. * address 地址
  55. * shopPhoto 门头照(headpic)
  56. * businessLicense 营业执照(businessLicenseImage)
  57. * socialCreditCode 统一社会信用代码(socialCreditCode)
  58. * firstClubType 一级分类:医美=1和生美=2
  59. * secondClubType 医美的二级分类:诊所=1、门诊=2、医院=3。 生美没有二级分类
  60. * department 医美分类下的门诊和医院则需要填写科室
  61. * medicalPracticeLicense 医美分类必须上传医疗执业许可证(medicalPracticeLicenseImg)
  62. * mainProduct 主打项目(mainpro)
  63. * fax 传真
  64. * profile 公司简介
  65. * }
  66. * @param headers HttpHeaders
  67. * @return ClubPo
  68. */
  69. ResponseJson clubUpgrade(ClubUpgradeDto upgradeDto, HttpHeaders headers);
  70. /**
  71. * 协销拉机构上线
  72. *
  73. * @param id 暂存机构数据id
  74. * @param headers HttpHeaders
  75. * @return ClubPo
  76. */
  77. ResponseJson<Integer> clubOnline(Integer id, HttpHeaders headers);
  78. /**
  79. * 小程序端分步供应商注册
  80. *
  81. * @param shopRegisterDto ShopRegisterDto{
  82. * source 注册来源: 0网站 1小程序
  83. * name 组织名称
  84. * shortName 供应商公司简称(shortName)
  85. * bindMobile 企业绑定手机号
  86. * email 邮箱
  87. * password 密码
  88. * linkMan 联系人
  89. * provinceId 省(provinceID)
  90. * cityId 市(cityID)
  91. * townId 所在县区Id(townID)
  92. * address 地址
  93. * socialCreditCode 统一社会信用代码
  94. * businessLicense 营业执照(businessLicenseImage)
  95. * firstShopType 医疗=1和非医疗=2
  96. * secondShopType 医疗的二级分类 一类器械=1、二类器械 =2、三类器械=3、其他=4 /// 1和非医疗没有二级分类
  97. * mainProduct 主打项目(mainpro)
  98. * }
  99. * @param passWordConfirm 用户确认密码
  100. * @param smsCode 短信验证码(旧:activationCode)
  101. * @param isAgreed 是否同意勾选同意协议,1是,其他否
  102. * @param whichStep 注册步数: PC(0),小程序(1,2,3)
  103. * @param headers HttpHeaders
  104. * @return ShopPo
  105. */
  106. ResponseJson shopRegister(ShopRegisterDto shopRegisterDto, String passWordConfirm, String smsCode, Integer isAgreed, Integer whichStep, HttpHeaders headers);
  107. /**
  108. * 更新供应商申请信息
  109. *
  110. * @param shopApplyDto ShopRegisterDto
  111. * @param headers HttpHeaders
  112. * @return ShopPo
  113. */
  114. ResponseJson updateShopApply(ShopApplyDto shopApplyDto, HttpHeaders headers);
  115. /**
  116. * 引导升级后改变guideFlag状态
  117. *
  118. * @param userId
  119. */
  120. ResponseJson updateGuideFlag(Integer userId);
  121. /**
  122. * 暂时存储机构资料
  123. *
  124. * @param onlineDto
  125. * @return
  126. */
  127. ResponseJson<Integer> clubTemporary(ClubOnlineDto onlineDto);
  128. /**
  129. * 查询暂时存储数据
  130. *
  131. * @param id
  132. * @return
  133. */
  134. ResponseJson<ClubTemporaryVo> temporaryData(Integer id);
  135. // /**
  136. // * 购买超级会员
  137. // * @param superVipDto
  138. // * @param headers
  139. // * @return
  140. // */
  141. // ResponseJson superVipUpgrade(SuperVipDto superVipDto, HttpHeaders headers);
  142. /**
  143. * 采美豆购买超级会员
  144. * @param
  145. * @param headers
  146. * @return
  147. */
  148. ResponseJson superVipUpByBeans(Integer userId, Integer packageId, HttpHeaders headers);
  149. }