question

package
v0.0.0-...-f27ef36 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PageSize = 30
)

Variables

This section is empty.

Functions

func GetDetail

func GetDetail(id int) *question.Entity

查询指定的文档详情

func GetList

func GetList(page, sort int) []*question.Entity

查询问答列表

func GetListByUid

func GetListByUid(uid, page int) []*question.Entity

查询用户的问答列表

Types

type SaveParam

type SaveParam struct {
	Id      uint
	Uid     uint   `v:"required#用户ID不能为空"`
	Title   string `v:"required#标题不能为空"`
	Content string `v:"required#内容不能为空"`
	Brief   string
	Thumb   string
	Referer string
	Tags    string
}

问答写入/更新对象

func (*SaveParam) Save

func (p *SaveParam) Save() error

保存问答内容

Jump to

Keyboard shortcuts

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