v1

package
v0.0.0-...-5952180 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

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 ArticleListRes struct {
	Lists []model.Article `json:"lists"`
	Total int64           `json:"total"`
}

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 CommentListRes struct {
	Lists []model.Comment `json:"lists"`
	Total int64           `json:"total"`
}

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 TagAllReq

type TagAllReq struct{}

TagAllReq 标签全列表

type TagAllRes

type TagAllRes struct {
	Lists []model.Tag `json:"lists"`
}

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 TagListRes struct {
	Lists []model.Tag `json:"lists"`
	Total int64       `json:"total"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL