package com.doumee.api.web;
|
|
import com.doumee.core.annotation.LoginRequired;
|
import com.doumee.core.annotation.pr.PreventRepeat;
|
import com.doumee.core.annotation.trace.Trace;
|
import com.doumee.core.model.ApiResponse;
|
import com.doumee.dao.business.web.response.HomeResponse;
|
import com.doumee.dao.business.web.response.RidesDetailResponse;
|
import com.doumee.service.business.GoodsorderService;
|
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.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RestController;
|
|
/**
|
* Created by IntelliJ IDEA.
|
*
|
* @Author : Rk
|
* @create 2023/10/7 14:43
|
*/
|
|
@Api(tags = "2、首页业务")
|
@Trace(exclude = true)
|
@RestController
|
@RequestMapping("/web/home")
|
@Slf4j
|
public class HomeApi extends ApiController{
|
|
@Autowired
|
private GoodsorderService goodsorderService;
|
|
@LoginRequired
|
@ApiOperation(value = "首页信息", notes = "首页信息")
|
@GetMapping("/home")
|
@ApiImplicitParams({
|
@ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true)
|
})
|
public ApiResponse<HomeResponse> home() {
|
HomeResponse homeResponse = goodsorderService.getHome(getMemberId());
|
return ApiResponse.success("查询成功",homeResponse);
|
}
|
|
}
|