Documentation ¶
Index ¶
Constants ¶
View Source
const AttachmentFields = "id, name, path, user_id, page_id, project_id, created_at, updated_at, deleted_at"
View Source
const PageFields = "" /* 150-byte string literal not displayed */
View Source
const PageHistoryFields = "" /* 129-byte string literal not displayed */
View Source
const ProjectFields = "id, name, description, visibility, user_id, created_at, updated_at, deleted_at, sort_level, catalog_id"
View Source
const StatusNormal int64 = 1
View Source
const TypeMarkdown int64 = 1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type PageHistory ¶
type PageModel ¶
type PageModel struct {
// contains filtered or unexported fields
}
func NewPageModel ¶
func (*PageModel) AddAttachment ¶
func (m *PageModel) AddAttachment(file Attachment) (int64, error)
AddAttachment 添加附件
func (*PageModel) AddHistory ¶
func (m *PageModel) AddHistory(history PageHistory) (int64, error)
AddHistory 添加文档历史
func (*PageModel) CreatePage ¶
CreatePage 新增文档
type ProjectModel ¶
type ProjectModel struct {
// contains filtered or unexported fields
}
func NewProjectModel ¶
func NewProjectModel(db *sql.Tx) *ProjectModel
func (*ProjectModel) CreateProject ¶
func (m *ProjectModel) CreateProject(project Project) (int64, error)
CreateProject 新增项目
Click to show internal directories.
Click to hide internal directories.