feat:增加博客统计接口
This commit is contained in:
16
schemas/blog_stats.py
Normal file
16
schemas/blog_stats.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from pydantic import BaseModel, ConfigDict
|
||||
|
||||
|
||||
class BlogOverview(BaseModel):
|
||||
blogCount: int
|
||||
categoryCount: int
|
||||
wordCount: int
|
||||
greatCount: int
|
||||
visitCount: int
|
||||
|
||||
|
||||
class BlogChartStats(BaseModel):
|
||||
name: str
|
||||
value: int
|
||||
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
Reference in New Issue
Block a user