Documentation ¶
Index ¶
- Constants
- Variables
- func InsertShareNote(ctx *biz_context.BizContext, shareNote *ShareNote) error
- func InsertShareNoteComment(ctx *biz_context.BizContext, comment *ShareNoteComment) error
- func UpdateShareNote(ctx *biz_context.BizContext, shareNote *ShareNote) error
- type ShareNote
- type ShareNoteComment
- type ShareNoteShareType
- type ShareNoteStatus
Constants ¶
View Source
const ()
View Source
const ( IDField = "_id" )
Variables ¶
View Source
ShareTypeDefault: "default", ShareTypeCanView: "can_view", ShareTypeCanComment: "can_comment", ShareTypeCanEdit: "can_edit", }
View Source
ShareTypeDefault, "can_view": ShareTypeCanView, "can_comment": ShareTypeCanComment, "can_edit": ShareTypeCanEdit, }"default":
View Source
ShareNoteStatusDefault: "default", ShareNoteStatusExpired: "expired", ShareNoteStatusCancel: "cancel", }
View Source
ShareNoteStatusDefault, "expired": ShareNoteStatusExpired, "cancel": ShareNoteStatusCancel, }"default":
Functions ¶
func InsertShareNote ¶
func InsertShareNote(ctx *biz_context.BizContext, shareNote *ShareNote) error
func InsertShareNoteComment ¶
func InsertShareNoteComment(ctx *biz_context.BizContext, comment *ShareNoteComment) error
func UpdateShareNote ¶
func UpdateShareNote(ctx *biz_context.BizContext, shareNote *ShareNote) error
Types ¶
type ShareNote ¶
type ShareNote struct {}
func GetShareNote ¶
func GetShareNote(ctx *biz_context.BizContext, shareID string) (*ShareNote, error)
type ShareNoteComment ¶
type ShareNoteComment struct {}
func GetShareNoteCommentsWithShareNoteID ¶
func GetShareNoteCommentsWithShareNoteID(ctx *biz_context.BizContext, shareNoteID string, page int, pageSize int) ([]*ShareNoteComment, error)
Click to show internal directories.
Click to hide internal directories.