model

package
v0.0.0-...-8103b37 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IsNotPinned = 0
	IsPinned    = 1
)

评论是否置顶

Variables

This section is empty.

Functions

This section is empty.

Types

type ReplyReq

type ReplyReq struct {
	Type     ReplyType `json:"type"`    // 评论类型 (0-文本; 1-图文)
	Oid      uint64    `json:"nid"`     // 对象id
	Content  string    `json:"content"` // 评论内容
	RootId   uint64    `json:"pid"`     // 根评论id
	ParentId uint64    `json:"rid"`     // 被回复的评论id
	ReplyUid uint64    `json:"ruid"`    // 被回复的用户id
}

发表评论参数

func (*ReplyReq) Validate

func (r *ReplyReq) Validate() error

type ReplyRes

type ReplyRes struct {
	ReplyId uint64
	Uid     uint64
}

发表评论结果

type ReplyState

type ReplyState int8

评论状态

const (
	// TODO define more reply state
	ReplyStateNormal ReplyState = 0
)

评论状态

type ReplyType

type ReplyType int8

评论类型

const (
	ReplyText      ReplyType = 0
	ReplyImageText ReplyType = 1
)

Jump to

Keyboard shortcuts

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