| | |
| | | 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.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | | import java.util.List; |
| | | |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/user") |
| | | @RequestMapping("/shop") |
| | | @Api(tags = "商城模块") |
| | | public class CompanyShopController { |
| | | |
| | |
| | | |
| | | |
| | | @ApiOperation(value = "获取商城首页",tags = {"商城模块"}) |
| | | @GetMapping("/getCompanyList") |
| | | public R<Page<IndexCompanyListVo>> getCompanyList(@Valid CompanyListQuery query) { |
| | | @PostMapping("/getCompanyList") |
| | | public R<Page<IndexCompanyListVo>> getCompanyList(@Valid @RequestBody CompanyListQuery query) { |
| | | LoginUser loginUser = tokenService.getLoginUser(); |
| | | Long userId = loginUser.getUserId(); |
| | | Page<IndexCompanyListVo> page = tbCompanyService.getCompanyList(query,userId); |