增加获取设计阶段信息,获取施工阶段信息接口mini
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package com.cool.store.controller.webc;
|
package com.cool.store.controller.webc;
|
||||||
|
|
||||||
import com.cool.store.context.PartnerUserHolder;
|
import com.cool.store.context.PartnerUserHolder;
|
||||||
|
import com.cool.store.dto.decoration.ConstructionScheduleDTO;
|
||||||
import com.cool.store.dto.decoration.DecorationModelDTO;
|
import com.cool.store.dto.decoration.DecorationModelDTO;
|
||||||
import com.cool.store.request.LinePaySubmitRequest;
|
import com.cool.store.request.LinePaySubmitRequest;
|
||||||
import com.cool.store.request.ThreeAcceptanceRequest;
|
import com.cool.store.request.ThreeAcceptanceRequest;
|
||||||
@@ -8,14 +9,17 @@ import com.cool.store.response.ResponseResult;
|
|||||||
import com.cool.store.response.ThreeAcceptanceResponse;
|
import com.cool.store.response.ThreeAcceptanceResponse;
|
||||||
import com.cool.store.service.DecorationService;
|
import com.cool.store.service.DecorationService;
|
||||||
import com.cool.store.vo.DecorationModelVO;
|
import com.cool.store.vo.DecorationModelVO;
|
||||||
|
import com.cool.store.vo.DesignInfoVo;
|
||||||
import com.cool.store.vo.PartnerUserInfoVO;
|
import com.cool.store.vo.PartnerUserInfoVO;
|
||||||
import com.sun.xml.bind.v2.TODO;
|
import com.sun.xml.bind.v2.TODO;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Auther: WangShuo
|
* @Auther: WangShuo
|
||||||
@@ -31,12 +35,22 @@ public class MiniDecorationController {
|
|||||||
@Resource
|
@Resource
|
||||||
private DecorationService decorationService;
|
private DecorationService decorationService;
|
||||||
@PostMapping("/submitDecorationModel")
|
@PostMapping("/submitDecorationModel")
|
||||||
|
@ApiOperation("提交装修款")
|
||||||
public ResponseResult submitDecorationModel(@RequestBody LinePaySubmitRequest linePaySubmitRequest){
|
public ResponseResult submitDecorationModel(@RequestBody LinePaySubmitRequest linePaySubmitRequest){
|
||||||
PartnerUserInfoVO user = PartnerUserHolder.getUser();
|
PartnerUserInfoVO user = PartnerUserHolder.getUser();
|
||||||
//TODO
|
//TODO
|
||||||
return ResponseResult.success(decorationService.submitDecorationModel(linePaySubmitRequest, user));
|
return ResponseResult.success(decorationService.submitDecorationModel(linePaySubmitRequest, user));
|
||||||
}
|
}
|
||||||
|
@ApiModelProperty("获取设计阶段信息")
|
||||||
|
@GetMapping("/design")
|
||||||
|
public ResponseResult<DesignInfoVo> get(@RequestParam Long shopId){
|
||||||
|
return ResponseResult.success( decorationService.DesignInfo(shopId)) ;
|
||||||
|
}
|
||||||
|
@ApiModelProperty("获取施工阶段信息")
|
||||||
|
@GetMapping("/getConstruction")
|
||||||
|
public ResponseResult<List<ConstructionScheduleDTO>> getConstruction(@RequestParam Long shopId){
|
||||||
|
return ResponseResult.success(decorationService.getConstruction(shopId)) ;
|
||||||
|
}
|
||||||
@ApiModelProperty("获取装修款信息,和二维码")
|
@ApiModelProperty("获取装修款信息,和二维码")
|
||||||
@GetMapping("/getDecorationModel")
|
@GetMapping("/getDecorationModel")
|
||||||
public ResponseResult<DecorationModelDTO> getDecorationModel(@RequestParam Long shopId){
|
public ResponseResult<DecorationModelDTO> getDecorationModel(@RequestParam Long shopId){
|
||||||
|
|||||||
Reference in New Issue
Block a user