Documentation ¶
Index ¶
- type ArticleListReq
- type ArticleListRes
- type CommentCreateReq
- type CommentCreateRes
- type CommentDeleteReq
- type CommentDeleteRes
- type CommentListReq
- type CommentListRes
- type CommentUpdateReq
- type CommentUpdateRes
- type TagAllReq
- type TagAllRes
- type TagListReq
- type TagListRes
- type UserChangePwdReq
- type UserChangePwdRes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArticleListReq ¶
type ArticleListReq struct { Id int `json:"id" form:"id" binding:"min=0"` Q string `json:"q" form:"q" binding:"max=255"` TagId int `json:"tagId" form:"tagId" binding:"min=0"` PageNum int `json:"pageNum" form:"pageNum"` PageSize int `json:"pageSize" form:"pageSize"` }
ArticleListReq 文章列表
type ArticleListRes ¶
type CommentCreateReq ¶
type CommentCreateReq struct { UserId int `json:"userId" form:"userId"` // 登陆状态中获取 MentionUserId int `json:"mentionUserId" form:"mentionUserId" binding:"min=0"` ArticleId int `json:"articleId" form:"articleId" binding:"required,min=0"` Content string `json:"content" form:"content" binding:"required,min=1,max=1024"` }
CommentCreateReq 创建
type CommentCreateRes ¶
type CommentCreateRes struct {
Id int `json:"id"`
}
type CommentDeleteReq ¶
type CommentDeleteReq struct {
Id int `json:"id" form:"id"`
}
CommentDeleteReq 删除
type CommentDeleteRes ¶
type CommentDeleteRes struct {
Id int `json:"id"`
}
type CommentListReq ¶
type CommentListReq struct { Id int `json:"id" form:"id" binding:"min=0"` ArticleId int `json:"articleId" form:"articleId" binding:"min=0"` UserId int `json:"userId" form:"userId" binding:"min=0"` CommentStatus int `json:"commentStatus" form:"commentStatus" binding:"min=0"` PageNum int `json:"pageNum" form:"pageNum"` PageSize int `json:"pageSize" form:"pageSize"` }
CommentListReq 列表
type CommentListRes ¶
type CommentUpdateReq ¶
type CommentUpdateReq struct { Id int `json:"id" form:"id"` // 从路由获取注入 ArticleId int `json:"articleId" form:"articleId" binding:"required,min=0"` UserId int `json:"userId" form:"userId" binding:"required,min=0"` MentionUserId int `json:"mentionUserId" form:"mentionUserId" binding:"required,min=0"` Content string `json:"content" form:"title" binding:"required,min=1,max=1024"` CommentStatus int `json:"commentStatus" form:"commentStatus" binding:"required,min=1,max=2"` }
CommentUpdateReq 编辑
type CommentUpdateRes ¶
type CommentUpdateRes struct {
Id int `json:"id"`
}
type TagListReq ¶
type TagListReq struct { Id int `json:"id" form:"id" binding:"min=0"` TagName string `json:"tagName" form:"tagName" binding:"max=100"` TagStatus int `json:"tagStatus" form:"tagStatus" binding:"min=0"` PageNum int `json:"pageNum" form:"pageNum"` PageSize int `json:"pageSize" form:"pageSize"` }
TagListReq 标签列表
type TagListRes ¶
type UserChangePwdReq ¶
type UserChangePwdReq struct { Pwd string `json:"pwd" form:"pwd"` // 旧密码 Password string `json:"password" form:"password"` // 新密码 Confirm string `json:"confirm" form:"confirm"` // 新密码确认 }
UserChangePwdReq 删除
type UserChangePwdRes ¶
type UserChangePwdRes struct {
Id int `json:"id"`
}
Click to show internal directories.
Click to hide internal directories.