response

package
v0.0.0-...-cfa74d8 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArticleCommentInfo

type ArticleCommentInfo struct {
	model.CommentMeta `json:"_"`
	ID                uint           `gorm:"primaryKey;"`
	User              UserSimpleInfo `gorm:"foreignKey:UserId;"`
	UserId            uint           `json:"userId" label:"用户ID"`
	ArticleId         uint           `json:"articleId" label:"文章ID"`
	ReplyList         []ReplyInfo    `gorm:"foreignKey:CommentId;" json:"replyId" label:"回复ID"`
	Content           string         `json:"content" label:"评论内容"`
	UpdatedAt         time.Time      `json:"UpdatedAt" label:"更新时间"`
}

ArticleCommentInfo @Date 2023-02-23 22:14:48 @Description: 文章评论信息

type ArticleDetails

type ArticleDetails struct {
	model.ArticleMeta `json:"_"`
	Id                uint      `json:"id" label:"文章ID"`
	UserId            uint      `json:"userId" label:"作者ID"`
	Author            string    `json:"author" label:"文章作者"`
	Title             string    `json:"title" label:"文章标题"`
	Cover             string    `json:"cover" label:"文章封面"`
	Label             string    `json:"label" label:"文章标签"`
	Summary           string    `json:"summary" label:"文章摘要"`
	View              int       `json:"view" label:"文章浏览量"`
	Like              int       `json:"like" label:"点赞数"`
	Comment           int       `json:"comment" label:"评论数"`
	Content           string    `json:"content" label:"文章内容"`
	UpdatedAt         time.Time `json:"updatedAt" label:"更新时间"`
}

ArticleDetails @Date 2023-02-21 19:55:24 @Description: 文章细节信息

type AuthMail

type AuthMail struct {
	To     string `json:"to"`
	Code   string `json:"code"`
	Expire int    `json:"expire"`
}

AuthMail @Date 2023-02-08 17:10:25 @Description: 验证码邮件展示信息

type CommentInfo

type CommentInfo struct {
	User      UserSimpleInfo `json:"user" label:"用户信息"`
	Content   string         `json:"content" label:"评论内容"`
	UpdatedAt time.Time      `json:"updatedAt" label:"最后更新时间"`
}

CommentInfo @Date 2023-02-23 23:02:33 @Description: 评论展示信息

type FileInfo

type FileInfo struct {
	model.FileMeta `json:"_"`
	Name           string `json:"name" label:"文件名称"`
	Type           string `json:"type" label:"文件类型"`
	Url            string `json:"url" label:"文件url"`
}

FileInfo @Date 2023-02-23 23:04:26 @Description: 文件展示信息

type HeadInfo

type HeadInfo struct {
	Id        uint      `json:"id" label:"文章ID"`
	Title     string    `json:"title" label:"文章标题"`
	Cover     string    `json:"cover" label:"文章封面"`
	Author    string    `json:"author" label:"文章作者"`
	Label     string    `json:"label" label:"文章标签"`
	Summary   string    `json:"summary" label:"文章摘要"`
	View      int       `json:"view" label:"文章浏览量"`
	Like      int       `json:"like" label:"点赞数"`
	Class     string    `json:"clazz" label:"分类"`
	Comment   int       `json:"comment" label:"评论数"`
	UpdatedAt time.Time `json:"updatedAt" label:"更新时间"`
}

HeadInfo @Date 2023-02-18 18:04:04 @Description: 文章简单信息

type Jwt

type Jwt struct {
	Access  string `json:"access" form:"access" binding:"required" label:"Access-Token"`
	Refresh string `json:"refresh" form:"refresh" binding:"required" label:"Refresh-Token"`
}

Jwt @Date 2023-02-23 23:04:03 @Description: Jwt展示信息

type ReplyInfo

type ReplyInfo struct {
	model.ReplyMeta
	ID        uint           `gorm:"primaryKey;"`
	User      UserSimpleInfo `json:"user" label:"用户信息" gorm:"foreignKey:UserId"`
	UserId    uint           `json:"userId"`
	CommentId uint           `json:"commentId"`
	Content   string         `json:"content" label:"回复内容"`
	UpdatedAt time.Time      `json:"updatedAt" label:"最后更新时间"`
}

ReplyInfo @Date 2023-02-23 23:03:03 @Description: 回复展示信息

type UserBasicInfo

type UserBasicInfo struct {
	model.UserMeta `json:"-"`
	Id             uint      `json:"id" label:"用户id"`
	Uuid           string    `json:"uuid" label:"用户唯一ID"`
	Avatar         string    `json:"avatar" label:"头像"`
	Email          string    `json:"email" label:"用户邮箱"`
	Nickname       string    `json:"nickname" label:"昵称"`
	Description    string    `json:"description" label:"自我描述"`
	Password       string    `json:"password" label:"密码"`
	CreatedAt      time.Time `json:"createdAt" label:"注册时间"`
}

UserBasicInfo @Date 2023-02-25 19:20:03 @Description: 用户基本信息结构体

type UserSimpleInfo

type UserSimpleInfo struct {
	model.UserMeta `json:"-"`
	Id             uint   `json:"id" label:"用户id"`
	Avatar         string `json:"avatar" label:"头像"`
	Email          string `json:"email" label:"用户邮箱"`
	Nickname       string `json:"nickname" label:"昵称"`
}

UserSimpleInfo @Date 2023-02-23 23:00:14 @Description: 用户简单信息

Jump to

Keyboard shortcuts

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