新店装修阶段1.0
This commit is contained in:
@@ -1,15 +1,23 @@
|
||||
package com.cool.store.controller.webb;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.cool.store.context.PartnerUserHolder;
|
||||
import com.cool.store.dto.decoration.ConstructionScheduleDTO;
|
||||
import com.cool.store.dto.decoration.DecorationDTO;
|
||||
import com.cool.store.dto.decoration.DecorationModelDTO;
|
||||
import com.cool.store.request.DecorationPayRequest;
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.cool.store.service.CoolStoreStartFlowService;
|
||||
import com.cool.store.service.DecorationService;
|
||||
import com.cool.store.service.YlfService;
|
||||
import com.cool.store.vo.DesignInfoVo;
|
||||
import com.cool.store.vo.PartnerUserInfoVO;
|
||||
import io.swagger.annotations.Api;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Auther: WangShuo
|
||||
@@ -23,11 +31,23 @@ import javax.annotation.Resource;
|
||||
@Slf4j
|
||||
public class PCDecorationController {
|
||||
@Resource
|
||||
private YlfService ylfService;
|
||||
@GetMapping("/get")
|
||||
private ResponseResult get(){
|
||||
String shopCode = "31310383";
|
||||
return new ResponseResult<>(200,ylfService.getProjectList(shopCode)) ;
|
||||
|
||||
private DecorationService decorationService;
|
||||
@GetMapping("/design")
|
||||
public ResponseResult<DesignInfoVo> get(@RequestParam String shopCode){
|
||||
return ResponseResult.success( decorationService.DesignInfo(shopCode)) ;
|
||||
}
|
||||
@GetMapping("/getDecorationModel")
|
||||
public ResponseResult<DecorationModelDTO> getDecorationModel(@RequestParam String shopCode){
|
||||
return ResponseResult.success(decorationService.DecorationModel(shopCode)) ;
|
||||
}
|
||||
@PostMapping("/submitDecorationModel")
|
||||
public ResponseResult submitDecorationModel(@RequestBody DecorationPayRequest DecorationPayRequest){
|
||||
PartnerUserInfoVO user = PartnerUserHolder.getUser();
|
||||
decorationService.submitDecorationModel(DecorationPayRequest, user);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
@GetMapping("/getConstruction")
|
||||
public ResponseResult<List<ConstructionScheduleDTO>> getConstruction(@RequestParam String shopCode){
|
||||
return ResponseResult.success(decorationService.getConstruction(shopCode)) ;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user