Browse Source

接口整理

Aslee 4 years ago
parent
commit
893e895336
1 changed files with 360 additions and 0 deletions
  1. 360 0
      src/main/java/com/caimei365/user/controller/AllApi.java

+ 360 - 0
src/main/java/com/caimei365/user/controller/AllApi.java

@@ -10,6 +10,9 @@ import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
+import java.util.Map;
+import java.util.UUID;
+
 public class AllApi {
 
 //注册
@@ -187,4 +190,361 @@ public class AllApi {
     public JsonModel getTown(Integer cityId) {
         return null;
     }
+
+//login
+    /**
+     * 返回修改申请信息的数据
+     */
+    @GetMapping("/user/club/applicationData")
+    public JsonModel applicationData(Integer userID) {
+        return null;
+    }
+
+
+    /**
+     * 【可能废弃了】修改申请信息
+     */
+    @PostMapping("/user/club/updateCompanyInfo")
+    public JsonModel updateCompanyInfo(ClubVo clubVo) {
+        return null;
+    }
+
+    /**
+     * 登录(用户名,密码)
+     *
+     * @param mobileOrEmail
+     * @param password
+     * @return token
+     */
+    @PostMapping("/user/login")
+    public JsonModel login(String mobileOrEmail, String password, String source) {
+        return null;
+    }
+
+    /**
+     * 发送邮箱验证码
+     *
+     * @param status 1:绑定邮箱,2邮箱注册,3邮箱找回秘密
+     */
+    @GetMapping("/user/mailbox")
+    public JsonModel sendMail(String email, String status) {
+        return null;
+    }
+
+    /**
+     * 绑定邮箱
+     */
+    @PostMapping("/user/binding")
+    public JsonModel bindingMail(Integer userID, String email, String code) {
+        return null;
+    }
+
+    /**
+     * 提供参数,去微信登录页面
+     */
+    @GetMapping("/user/toWechatLogin")
+    public JsonModel toWechatLogin() {
+        return null;
+    }
+
+    /**
+     * 微信扫码登录
+     */
+    @GetMapping("/user/wechatLogin")
+    public void wechatLogin(String code, String state, HttpServletRequest request) {
+    }
+
+    /**
+     * 轮询获取微信信息
+     */
+    @GetMapping("/user/polling")
+    public JsonModel polling(String uuid, HttpServletRequest request) {
+        return null;
+    }
+
+    /**
+     * 绑定机构账号
+     * @param mobileOrEmail     手机号或邮箱
+     * @param password          密码
+     * @param mobile            手机号
+     * @param verificationCode  手机验证码
+     */
+    @PostMapping("/user/bindOrganization")
+    public JsonModel bindOrganization(OperationVo operationUser, HttpServletRequest request) {
+        return null;
+
+    }
+
+    /**
+     * 绑定机构账号,发送短信验证
+     */
+    @GetMapping("/user/note")
+    public JsonModel note(String mobile, String mobileOrEmail, String imgCode, String token, Integer platformType) {
+        return null;
+
+    }
+
+    /**
+     * 获取图形验证码
+     *
+     * @param platformType 0 www 、1 crm ,2 小程序
+     */
+    @GetMapping("/user/getImgVerifyCode")
+    public JsonModel getImgVerifyCode(Integer platformType) {
+        return null;
+    }
+
+
+    /**
+     * 手机号发送验证码
+     *
+     * @param mobile
+     * @param activateCodeType 1:找回密码,2:手机号注册机构,3:供应商注册
+     * @param imgCode
+     * @param token
+     * @return
+     */
+    @GetMapping("/user/activateCodeByReg")
+    public JsonModel activateCodeByReg(String mobile, String activateCodeType, String imgCode, String token, Integer platformType) {
+        return null;
+    }
+
+    /**
+     * 忘记密码,找回密码
+     *
+     * @param mobileOrEmail
+     * @param activateCode
+     * @param passWord
+     * @param confirmPwd
+     * @param status        1:手机号找回,2:邮箱找回
+     * @return
+     */
+    @PostMapping("/user/findCompanyPwd")
+    public JsonModel findCompanyPwd(String mobileOrEmail, String activateCode, String passWord, String confirmPwd, String status) {
+        return null;
+    }
+
+    /**
+     * 微信公众号授权链接
+     */
+    @GetMapping("/user/authorizationLink")
+    public JsonModel authorizationLink(String redirectUri, Integer mode) {
+        return null;
+    }
+
+    /**
+     * 微信公众号授权登录
+     */
+    @GetMapping("/user/authorizationLogin")
+    public JsonModel authorizationLogin(String code, String state, Integer mode, HttpServletRequest request) {
+        return null;
+    }
+
+//message
+    /**
+     * 我的消息
+     */
+    @GetMapping("/user/messageList")
+    public JsonModel messageList(Integer userId, PageVo pageVo) {
+        return null;
+    }
+
+    /**
+     * 标为已读
+     */
+    @PostMapping("/user/markAsRead")
+    public JsonModel markAsRead(String messageIds) {
+        return null;
+    }
+
+    /**
+     * 删除消息
+     */
+    @PostMapping("/user/deleteMessage")
+    public JsonModel deleteMessage(String messageIds) {
+        return null;
+    }
+
+    /**
+     * 上传头像
+     */
+    @PostMapping("/user/uploadAvatar")
+    public JsonModel uploadAvatar(Integer userId, String image) {
+        return null;
+    }
+
+//operation
+    /**
+     * 获取运营人员列表
+     * @param userID    用户ID
+     * @param linkName  运营人员姓名
+     * @param mobile    运营人员手机号
+     * @return `List<OperationVo>`
+     */
+    @GetMapping("/operation/list")
+    public JsonModel getList(OperationVo operation, PageVo pageVo) {
+        return operationService.getList(operation, pageVo);
+    }
+
+    /**
+     * 添加运营人员
+     * @param mobile        手机号
+     * @param linkName      姓名
+     * @param userID        用户ID
+     * @param clubID        机构ID
+     * @param configFlag    确认标志
+     * @return
+     */
+    @PostMapping("/operation/add")
+    public JsonModel addOperation(OperationVo operation) {
+        return operationService.saveOperation(operation);
+    }
+
+    /**
+     * 更新邀请码
+     * @param id    运营人员id
+     * @return
+     */
+    @PostMapping("/operation/updateInvitationCode")
+    public JsonModel updateInvitationCode(OperationVo operation) {
+        return operationService.updateInvitationCode(operation);
+    }
+
+    /**
+     * 删除运营人员(解绑)
+     * @param id    运营人员id
+     * @return
+     */
+    @PostMapping("/operation/delete")
+    public JsonModel deleteOperation(OperationVo operation) {
+        return operationService.unbindOperation(operation);
+    }
+
+    /**
+     * 修改机构资料
+     * @param userID                        用户ID
+     * @param clubID                        机构ID
+     * @param name                          机构名称
+     * @param linkMan1                      联系人
+     * @param sname                         机构简称
+     * @param contractEmail1                邮箱
+     * @param provinceID                    省
+     * @param cityID                        市
+     * @param townID                        区
+     * @param address                       地址
+     * @param socialCreditCode              统一社会信用代码
+     * @param businessLicenseImag           营业执照
+     * @param headpic                       门头照
+     * @param firstClubType                 一级分类为医美=1和生美=2
+     * @param secondClubType                医美的二级分类为诊所=1、门诊=2、医院=3。  生美没有二级分类
+     * @param department                    若为医美分类下的门诊和医院则需要填写科室。
+     * @param medicalPracticeLicenseImg     医美分类必须上传医疗执业许可证
+     * @param mainpro                       主打项目
+     * @param fax                           传真
+     * @param contractPhone                 电话
+     * @param info                          公司简介
+     */
+    @PostMapping("/operation/modifiedData")
+    public JsonModel modifiedData(ClubVo club) {
+        return operationService.modifiedData(club);
+    }
+
+//pcCenter
+    /**
+     * pc端个人中心数据
+     */
+    @GetMapping("/pcCenter/myPcCenter")
+    public JsonModel myPcCenter(Integer userId) {
+        return null;
+    }
+
+    /**
+     * 查询我的订单
+     *
+     * @param orderState 订单状态
+     * @param searchNo   订单号
+     * @param beginTime  开始时间
+     * @param endTime    结束时间
+     * @param userId     用户id
+     * @param pageVo     分页对象
+     * @return
+     */
+    @GetMapping("/pcCenter/getOrderList")
+    public JsonModel getOrderList(Integer orderState, String searchNo, String beginTime, String endTime, Integer userId, PageVo pageVo) {
+        return null;
+    }
+
+    /**
+     * 获取各状态订单数量
+     *
+     * @param userId 用户id
+     */
+    @GetMapping("/pcCenter/getOrderNum")
+    public JsonModel getOrderNum(Integer userId) {
+        return null;
+    }
+
+    /**
+     * 维修列表
+     * @param keyword       关键词 查询条件
+     * @param status        维修状态1.已提交,2已对接(确认真实后)3已评价,4取消
+     * @param userId        用户Id
+     * @param startTime     开始时间
+     * @param endTime       结束时间
+     * @param pageNum       页码
+     * @param pageSize      分页大小
+     */
+    @GetMapping("/pcCenter/findMaintenance")
+    public JsonModel findMaintenance(CmInstrumentMaintenanceVo maintenanceVo, PageVo pageVo) {
+        return null;
+    }
+
+    /**
+     * 申请维修
+     * @param userId                用户Id
+     * @param userContact           用户联系人
+     * @param userMobile            用户手机号
+     * @param provinceName          省
+     * @param cityName              市
+     * @param townName              区
+     * @param userAddress           地址
+     * @param instrumentName        仪器名
+     * @param manufacturer          仪器厂家
+     * @param instrumentImages      仪器图,以,隔开
+     * @param problemDescription    问题描述
+     */
+    @PostMapping("/pcCenter/applyMaintenance")
+    public JsonModel applyMaintenance(CmInstrumentMaintenanceVo maintenanceVo) {
+        return null;
+    }
+
+    /**
+     * 维修详情
+     * id 维修id
+     */
+    @GetMapping("/pcCenter/maintenance/detail")
+    public JsonModel maintenanceDetail(Integer id) {
+        return null;
+    }
+
+    /**
+     * 物流信息
+     * @param orderId 订单id
+     * @return
+     */
+    @GetMapping("/pcCenter/logistics")
+    public JsonModel logistics(Integer orderId){
+        return null;
+    }
+
+    /**
+     * 评价维修
+     * @param solveStatus    是否解决问题:0未解决,1已解决
+     * @param serviceRating  服务评分,一颗心表示1,多颗数次之
+     * @param serviceEvaluate  服务评价
+     */
+    @PostMapping("/pcCenter/maintenance/evaluation")
+    public JsonModel evaluationMaintenance(Integer id, String solveStatus, String serviceRating, String serviceEvaluate){
+        return null;
+    }
 }