123456789101112131415161718192021222324252627 |
- package com.nosum.deliver.posts.controller;
- import com.nosum.common.base.domain.Result;
- import com.nosum.deliver.posts.domain.vo.PostsVO;
- import com.nosum.deliver.posts.service.PostsService;
- 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.RestController;
- @RestController
- @RequestMapping("/archive")
- public class ArchiveController {
- @Autowired
- private PostsService postsService;
- @GetMapping("/archive/v1/list")
- public Result<PostsVO> getArchiveTotalByDateList(PostsVO postsVO) {
- return postsService.getArchiveTotalByDateList(postsVO);
- }
- @GetMapping("/year/v1/list")
- public Result<PostsVO> getArchiveGroupYearList(PostsVO postsVO) {
- return postsService.getArchiveGroupYearList(postsVO);
- }
- }
|