Documentation
¶
Index ¶
- func AddKnowledge(upd Knowledges) error
- func AddKnowledgeComment(upd KnowledgesComment) error
- func AddKnowledgeLaud(upd KnowledgesLaud) error
- func ChangeRelationNum(id int64, record string) error
- func CountKnowledge(condArr map[string]string) int64
- func DeleteKnowledge(id int64, userid int64) error
- func UpdateKnowledge(id int64, upd Knowledges) error
- type Knowledges
- type KnowledgesComment
- type KnowledgesLaud
- type KnowledgesSort
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 CountKnowledge ¶
func DeleteKnowledge ¶
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 (*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
Click to show internal directories.
Click to hide internal directories.