Documentation ¶
Index ¶
- type AuthLockRes
- type AuthLog
- type AuthLogLogin
- type AuthLogPassChange
- type AuthLogPassReset
- type AuthLogRes
- type AuthLoginReq
- type AuthLoginRes
- type AuthPassChangeReq
- type AuthPassResetReq
- type AuthRegistGenTokenReq
- type AuthRegistReq
- type AuthSession
- type Breadcrumb
- type CreateDocumentRes
- type CreateFolderRes
- type Document
- type DocumentModifyReqModel
- type Folder
- type FolderList
- type FolderModifyReqModel
- type ImageUploadRes
- type MemberInfo
- type MemberInfoReq
- type MemberInfoRes
- type Profile
- type ProfileReq
- type SearchTeamRes
- type SearchUserRes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthLockRes ¶ added in v1.3.0
type AuthLockRes struct {
Status bool `json:"status"`
}
AuthLockRes model
type AuthLog ¶
type AuthLog struct { User Profile `json:"user"` Date int64 `json:"date"` Type string `json:"type"` Data interface{} `json:"data"` }
AuthLog model
type AuthLogLogin ¶
type AuthLogLogin struct { SessionID string `json:"sessionid"` IPAddr string `json:"ipaddr"` DeviceInfo string `json:"devinfo"` }
AuthLogLogin model
type AuthLogPassChange ¶
AuthLogPassChange model
type AuthLogPassReset ¶
AuthLogPassReset model
type AuthLogRes ¶
type AuthLogRes struct { Offset int `json:"offset"` Length int `json:"len"` Logs []AuthLog `json:"logs"` HasNext bool `json:"has_next"` }
AuthLogRes model
type AuthLoginReq ¶
AuthLoginReq model
type AuthPassChangeReq ¶
type AuthPassChangeReq struct { OldPass string `json:"oldpass,omitempty"` NewPass string `json:"newpass"` }
AuthPassChangeReq model
type AuthPassResetReq ¶
type AuthPassResetReq struct {
Email string `json:"email"`
}
AuthPassResetReq model
type AuthRegistGenTokenReq ¶
type AuthRegistGenTokenReq struct {
Token string `json:"token"`
}
AuthRegistGenTokenReq model
type AuthRegistReq ¶
type AuthRegistReq struct { Email string `json:"email"` UserName string `json:"username"` Password string `json:"password"` }
AuthRegistReq model
type AuthSession ¶
type AuthSession struct { SessionID string `json:"sessionid"` LastLogin int64 `json:"lastlogin"` LastUsed int64 `json:"lastused"` IPAddr string `json:"ipaddr"` DeviceInfo string `json:"devinfo"` IsCurrent bool `json:"iscurrent"` }
AuthSession model
type Breadcrumb ¶
Breadcrumb is structure for breadcrumb
type CreateDocumentRes ¶
type CreateDocumentRes struct {
DocumentID string `json:"doc_id"`
}
CreateDocumentRes is structure for response of document creation
type CreateFolderRes ¶
type CreateFolderRes struct {
FolderID string `json:"folder_id"`
}
CreateFolderRes is structure for response of creation folder
type Document ¶
type Document struct { UUID string `json:"uuid"` Owner Profile `json:"owner"` Updater Profile `json:"updater"` Title string `json:"title"` Body string `json:"body"` Permission int `json:"permission"` CreatedAt int64 `json:"created_at"` UpdatedAt int64 `json:"updated_at"` Editable bool `json:"editable"` ParentFolderID string `json:"parentfolderid"` Revision int }
Document is structure for document info
type DocumentModifyReqModel ¶
type DocumentModifyReqModel struct { OwnerUUID string `json:"owneruuid"` Permission int `json:"permission"` }
DocumentModifyReqModel is structure for request document info modification
type Folder ¶
type Folder struct { UUID string `json:"uuid"` Owner Profile `json:"owner"` Updater Profile `json:"updater"` Name string `json:"name"` Permission int `json:"permission"` CreatedAt int64 `json:"created_at"` UpdatedAt int64 `json:"updated_at"` Editable bool `json:"editable"` ParentFolderID string `json:"parentfolderid"` }
Folder is structure for folder info
type FolderList ¶
type FolderList struct { Folder []Folder `json:"folder"` Document []Document `json:"document"` Path []Breadcrumb `json:"path"` }
FolderList is structure for folder list
type FolderModifyReqModel ¶
type FolderModifyReqModel struct { OwnerUUID string `json:"owneruuid"` Name string `json:"name"` Permission int `json:"permission"` }
FolderModifyReqModel is structure for request folder info modification
type ImageUploadRes ¶
type ImageUploadRes struct {
ID string `json:"id"`
}
ImageUploadRes is structure for response of image upload
type MemberInfo ¶
MemberInfo model
type MemberInfoReq ¶
MemberInfoReq model
type MemberInfoRes ¶
type MemberInfoRes struct { Total int `json:"total"` Members []MemberInfo `json:"members"` }
MemberInfoRes model
type Profile ¶
type Profile struct { UUID string `json:"uuid"` Name string `json:"name"` Bio string `json:"bio"` IconURI string `json:"icon_uri"` CreatedAt int64 `json:"created_at"` Attr string `json:"attr"` IsTeam bool `json:"is_team"` Teams []Profile `json:"teams"` Lang string `json:"lang"` IsAdmin bool `json:"is_admin"` IsLock bool `json:"is_lock"` }
Profile model
type ProfileReq ¶
type ProfileReq struct { // Name *string `json:"name"` Bio *string `json:"bio"` IconURI *string `json:"icon_uri"` Lang *string `json:"lang"` }
ProfileReq model
type SearchTeamRes ¶
SearchTeamRes model
type SearchUserRes ¶
SearchUserRes model