knowledges

package
v0.0.0-...-887e490 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddKnowledge

func AddKnowledge(upd Knowledges) error

func AddKnowledgeComment

func AddKnowledgeComment(upd KnowledgesComment) error

func AddKnowledgeLaud

func AddKnowledgeLaud(upd KnowledgesLaud) error

func ChangeRelationNum

func ChangeRelationNum(id int64, record string) error

func CountKnowledge

func CountKnowledge(condArr map[string]string) int64

func DeleteKnowledge

func DeleteKnowledge(id int64, userid int64) error

func UpdateKnowledge

func UpdateKnowledge(id int64, upd Knowledges) error

Types

type Knowledges

type Knowledges struct {
	Id       int64 `orm:"pk;column(knowid);"`
	Userid   int64
	Sortid   int64
	Title    string
	Tag      string
	Summary  string
	Url      string
	Color    string
	Content  string
	Viewnum  int
	Comtnum  int
	Laudnum  int
	Ispublis int
	Status   int
	Created  int64
	Changed  int64
}

func GetKnowledge

func GetKnowledge(id int64) (Knowledges, error)

func ListKnowledge

func ListKnowledge(condArr map[string]string, page int, offset int) (num int64, err error, ops []Knowledges)

func (*Knowledges) TableName

func (this *Knowledges) TableName() string

type KnowledgesComment

type KnowledgesComment struct {
	Id      int64 `orm:"pk;column(comtid);"`
	Userid  int64
	Knowid  int64
	Content string
	Created int64
	Status  int
}

func ListKnowledgeComment

func ListKnowledgeComment(knowid int64, page, offset int) (ops []KnowledgesComment)

func (*KnowledgesComment) TableName

func (this *KnowledgesComment) TableName() string

type KnowledgesLaud

type KnowledgesLaud struct {
	Id      int64 `orm:"pk;column(laudid);"`
	Userid  int64
	Knowid  int64
	Created int64
	Status  int
}

func GetKnowledgeLaud

func GetKnowledgeLaud(id int64) (KnowledgesLaud, error)

func ListKnowledgeLaud

func ListKnowledgeLaud(knowid int64, page, offset int) (ops []KnowledgesLaud)

func (*KnowledgesLaud) TableName

func (this *KnowledgesLaud) TableName() string

type KnowledgesSort

type KnowledgesSort struct {
	Id     int64 `orm:"pk;column(sortid);"`
	Name   string
	Desc   string
	Status int
}

func ListKnowledgeSort

func ListKnowledgeSort() (num int64, err error, ops []KnowledgesSort)

func (*KnowledgesSort) TableName

func (this *KnowledgesSort) TableName() string

Jump to

Keyboard shortcuts

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