mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-22 20:23:35 +08:00
feat:实现团队功能
This commit is contained in:
@@ -90,6 +90,7 @@ func (item *Document) Find(id int) (*Document, error) {
|
||||
//插入和更新文档.
|
||||
func (item *Document) InsertOrUpdate(cols ...string) error {
|
||||
o := orm.NewOrm()
|
||||
item.DocumentName = utils.StripTags(item.DocumentName)
|
||||
var err error
|
||||
if item.DocumentId > 0 {
|
||||
_, err = o.Update(item, cols...)
|
||||
|
Reference in New Issue
Block a user