PC 线索信息 我的线索 团队线索
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
package com.cool.store.controller.webb;
|
||||
|
||||
import com.cool.store.context.CurrentUserHolder;
|
||||
import com.cool.store.context.LoginUserInfo;
|
||||
import com.cool.store.request.LineListRequest;
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.cool.store.service.LineService;
|
||||
import com.cool.store.vo.LineInfoVO;
|
||||
import com.cool.store.vo.LineListVO;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import io.swagger.annotations.Api;
|
||||
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.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2024/3/27 15:57
|
||||
* @Version 1.0
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pc/line")
|
||||
@Api(tags = "PC线索信息")
|
||||
@Slf4j
|
||||
public class LineInfoController {
|
||||
|
||||
@Resource
|
||||
LineService lineService;
|
||||
|
||||
@ApiOperation("查询线索详情")
|
||||
@GetMapping("/getLineDetail")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "lineId", value = "线索id", required = true)
|
||||
})
|
||||
public ResponseResult<LineInfoVO> getLineInfo(@RequestParam("lineId")Long lineId) {
|
||||
return ResponseResult.success(lineService.getLineInfo(lineId));
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("我的线索")
|
||||
@PostMapping("/getMyLineList")
|
||||
public ResponseResult<PageInfo<LineListVO>> getLineList(@RequestBody LineListRequest lineListRequest) {
|
||||
LoginUserInfo user = CurrentUserHolder.getUser();
|
||||
user.setUserId("055740241221153440");
|
||||
return ResponseResult.success(lineService.getLineList(lineListRequest,user,Boolean.FALSE));
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("团队线索")
|
||||
@PostMapping("/getTeamLineList")
|
||||
public ResponseResult<PageInfo<LineListVO>> getTeamLineList(@RequestBody LineListRequest lineListRequest) {
|
||||
LoginUserInfo user = CurrentUserHolder.getUser();
|
||||
user.setUserId("055740241221153440");
|
||||
return ResponseResult.success(lineService.getLineList(lineListRequest,user,Boolean.TRUE));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user