commit | author | age
|
9bcb19
|
1 |
/* |
I |
2 |
Copyright [2020] [https://www.xiaonuo.vip] |
|
3 |
|
|
4 |
Licensed under the Apache License, Version 2.0 (the "License"); |
|
5 |
you may not use this file except in compliance with the License. |
|
6 |
You may obtain a copy of the License at |
|
7 |
|
|
8 |
http://www.apache.org/licenses/LICENSE-2.0 |
|
9 |
|
|
10 |
Unless required by applicable law or agreed to in writing, software |
|
11 |
distributed under the License is distributed on an "AS IS" BASIS, |
|
12 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
13 |
See the License for the specific language governing permissions and |
|
14 |
limitations under the License. |
|
15 |
|
|
16 |
Snowy采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点: |
|
17 |
|
|
18 |
1.请不要删除和修改根目录下的LICENSE文件。 |
|
19 |
2.请不要删除和修改Snowy源码头部的版权声明。 |
|
20 |
3.请保留源码和相关描述文件的项目出处,作者声明等。 |
|
21 |
4.分发源码时候,请注明软件出处 https://gitee.com/xiaonuobase/snowy |
|
22 |
5.在修改包名,模块名称,项目代码等时,请注明软件出处 https://gitee.com/xiaonuobase/snowy |
|
23 |
6.若您的项目无法满足以上几点,可申请商业授权,获取Snowy商业授权许可,请在官网购买授权,地址为 https://www.xiaonuo.vip |
|
24 |
*/ |
|
25 |
package vip.xiaonuo.modular.blogarticle.service; |
|
26 |
|
|
27 |
import com.baomidou.mybatisplus.extension.service.IService; |
20e5fc
|
28 |
import org.springframework.scheduling.annotation.Async; |
9bcb19
|
29 |
import vip.xiaonuo.core.pojo.page.PageResult; |
a9c4c9
|
30 |
import vip.xiaonuo.modular.blogStatistics.vo.BlogArchiveDetailVo; |
9bcb19
|
31 |
import vip.xiaonuo.modular.blogarticle.entity.BlogArticle; |
88f419
|
32 |
import vip.xiaonuo.modular.blogarticle.entity.BlogArticleVo; |
20e5fc
|
33 |
import vip.xiaonuo.modular.blogarticle.param.BlogArticleParam; |
I |
34 |
import vip.xiaonuo.modular.blogarticle.param.BlogArticleQueryDto; |
0613f2
|
35 |
|
9bcb19
|
36 |
import java.util.List; |
0613f2
|
37 |
import java.util.Map; |
20e5fc
|
38 |
import java.util.concurrent.Future; |
9bcb19
|
39 |
|
I |
40 |
/** |
|
41 |
* blog文章主体service接口 |
|
42 |
* |
|
43 |
* @author inleft |
|
44 |
* @date 2022-01-22 16:53:06 |
|
45 |
*/ |
|
46 |
public interface BlogArticleService extends IService<BlogArticle> { |
|
47 |
|
|
48 |
/** |
|
49 |
* 查询blog文章主体 |
|
50 |
* |
|
51 |
* @author inleft |
|
52 |
* @date 2022-01-22 16:53:06 |
|
53 |
*/ |
|
54 |
PageResult<BlogArticle> page(BlogArticleParam blogArticleParam); |
|
55 |
|
|
56 |
/** |
|
57 |
* blog文章主体列表 |
|
58 |
* |
|
59 |
* @author inleft |
|
60 |
* @date 2022-01-22 16:53:06 |
|
61 |
*/ |
|
62 |
List<BlogArticle> list(BlogArticleParam blogArticleParam); |
|
63 |
|
|
64 |
/** |
|
65 |
* 添加blog文章主体 |
|
66 |
* |
|
67 |
* @author inleft |
|
68 |
* @date 2022-01-22 16:53:06 |
|
69 |
*/ |
|
70 |
void add(BlogArticleParam blogArticleParam); |
|
71 |
|
|
72 |
/** |
|
73 |
* 删除blog文章主体 |
|
74 |
* |
|
75 |
* @author inleft |
|
76 |
* @date 2022-01-22 16:53:06 |
|
77 |
*/ |
|
78 |
void delete(List<BlogArticleParam> blogArticleParamList); |
|
79 |
|
|
80 |
/** |
|
81 |
* 编辑blog文章主体 |
|
82 |
* |
|
83 |
* @author inleft |
|
84 |
* @date 2022-01-22 16:53:06 |
|
85 |
*/ |
|
86 |
void edit(BlogArticleParam blogArticleParam); |
|
87 |
|
|
88 |
/** |
|
89 |
* 查看blog文章主体 |
|
90 |
* |
|
91 |
* @author inleft |
|
92 |
* @date 2022-01-22 16:53:06 |
|
93 |
*/ |
20e5fc
|
94 |
BlogArticle detail(BlogArticleParam blogArticleParam); |
9bcb19
|
95 |
|
I |
96 |
/** |
|
97 |
* 导出blog文章主体 |
|
98 |
* |
|
99 |
* @author inleft |
|
100 |
* @date 2022-01-22 16:53:06 |
|
101 |
*/ |
20e5fc
|
102 |
void export(BlogArticleParam blogArticleParam); |
9bcb19
|
103 |
|
20e5fc
|
104 |
List<BlogArticleVo> searchList(Map<String, Object> param); |
0613f2
|
105 |
|
a9c4c9
|
106 |
long searchListCount(Map<String, Object> param); |
I |
107 |
|
|
108 |
List<BlogArchiveDetailVo> searchMonthCount(Integer separateYear); |
|
109 |
|
20e5fc
|
110 |
/** |
I |
111 |
* 获取相邻上下记录的日志id |
|
112 |
*/ |
|
113 |
@Async |
|
114 |
Future<List<BlogArticleVo>> getAdjoiningRecord(BlogArticleQueryDto queryDto); |
dc050f
|
115 |
|
I |
116 |
List<BlogArticleVo> searchPlatformList(Map<String, Object> param); |
|
117 |
|
|
118 |
long searchPlatformListCount(Map<String, Object> param); |
9bcb19
|
119 |
} |