测试接口
This commit is contained in:
@@ -36,10 +36,17 @@ public class MiniProgramAppController {
|
||||
return ResponseResult.success(codeSessionVO);
|
||||
}
|
||||
|
||||
@ApiOperation("获取手机号")
|
||||
@PostMapping("/code/getUserPhoneNumber")
|
||||
public ResponseResult<CodeSessionVO> getUserPhoneNumber(@RequestBody @Valid MiniProgramLoginDTO param) {
|
||||
CodeSessionVO codeSessionVO = wechatMiniAppService.getUserPhoneNumber(param);
|
||||
return ResponseResult.success(codeSessionVO);
|
||||
}
|
||||
|
||||
@ApiOperation("获取小程序用户信息")
|
||||
@PostMapping("/user")
|
||||
public ResponseResult<MiniProgramUserVO> queryMiniProgramUser(@RequestBody @Valid MiniProgramMsgDTO param) {
|
||||
MiniProgramUserVO miniProgramUserVO = wechatMiniAppService.queryMiniProgramUser(param);
|
||||
return ResponseResult.success(miniProgramUserVO);
|
||||
public ResponseResult<CodeSessionVO> queryMiniProgramUser(@RequestBody @Valid MiniProgramMsgDTO param) {
|
||||
CodeSessionVO codeSessionVO = wechatMiniAppService.queryMiniProgramUser(param);
|
||||
return ResponseResult.success(codeSessionVO);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
package com.cool.store.controller;
|
||||
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.cool.store.vo.OpenAreaVO;
|
||||
import com.cool.store.vo.OpenProvinceVO;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiImplicitParams;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2023/5/29 14:19
|
||||
* @Version 1.0
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping({"/v1/partnerManage/{enterprise-id}/openArea" })
|
||||
@Slf4j
|
||||
public class OpenAreaController {
|
||||
|
||||
|
||||
@GetMapping(path = "/getOpenAreaList")
|
||||
@ApiOperation("开放城市(重点城市接口 区域申请搜索 )")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "keyOpenFlag", value = "重点城市标识 重点城市查询入参", required = false),
|
||||
@ApiImplicitParam(name = "parentId", value = "父区域名称", required = false),
|
||||
@ApiImplicitParam(name = "type", value = "可预约-reservation 可申请-apply ", required = false),
|
||||
@ApiImplicitParam(name = "keyWord", value = "搜索关键字", required = false),
|
||||
@ApiImplicitParam(name = "pageNumber", value = "页码", required = false),
|
||||
@ApiImplicitParam(name = "pageSize", value = "分页大小", required = false)
|
||||
})
|
||||
public ResponseResult<PageInfo<OpenAreaVO>> getOpenAreaList(@PathVariable(value = "enterprise-id", required = false) String enterpriseId,
|
||||
@RequestParam(value = "keyOpenFlag",required = false)Boolean keyOpenFlag,
|
||||
@RequestParam(value = "parentId",required = false)Boolean parentId,
|
||||
@RequestParam(value = "type",required = false)Boolean type,
|
||||
@RequestParam(value = "keyWord",required = false)Boolean keyWord,
|
||||
@RequestParam(value = "pageNumber",required = false,defaultValue = "1")Integer pageNumber,
|
||||
@RequestParam(value = "pageSize",required = false,defaultValue = "10")Integer pageSize){
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
|
||||
@GetMapping(path = "/getOpenProvince")
|
||||
@ApiOperation("可申请加盟省份/可预约加盟省份")
|
||||
public ResponseResult<OpenProvinceVO> getOpenProvince(@PathVariable(value = "enterprise-id", required = false) String enterpriseId){
|
||||
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package com.cool.store.controller;
|
||||
|
||||
import com.cool.store.request.BaseUserInfoRequest;
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.cool.store.vo.OpenAreaVO;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2023/5/29 20:04
|
||||
* @Version 1.0
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping({"/v1/partnerManage/{enterprise-id}/partner" })
|
||||
@Slf4j
|
||||
public class PartnerController {
|
||||
|
||||
|
||||
|
||||
@PostMapping(path = "/applyBaseInfo")
|
||||
@ApiOperation("提交基本信息")
|
||||
public ResponseResult<Boolean> applyBaseInfo(@PathVariable(value = "enterprise-id", required = false) String enterpriseId,
|
||||
@RequestBody BaseUserInfoRequest baseUserInfoRequest){
|
||||
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
|
||||
@PostMapping(path = "/changeBaseInfo")
|
||||
@ApiOperation("变更基本信息")
|
||||
public ResponseResult<Boolean> changeBaseInfo(@PathVariable(value = "enterprise-id", required = false) String enterpriseId,
|
||||
@RequestBody BaseUserInfoRequest baseUserInfoRequest){
|
||||
|
||||
//前提 未提交加盟申请
|
||||
//成功 意向区域变更成功 失败 您已进入意向申请流程,当前不可变更意向区域
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
|
||||
@GetMapping(path = "/getSubmitIntentionApplyFlag")
|
||||
@ApiOperation("获取提交意向申请标识 true 已提交 false 未提交")
|
||||
public ResponseResult<Boolean> getSubmitIntentionApplyFlag(@PathVariable(value = "enterprise-id", required = false) String enterpriseId){
|
||||
|
||||
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user