model

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

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

type AuthLogPassChange struct {
	SessionID string `json:"sessionid"`
	IPAddr    string `json:"ipaddr"`
}

AuthLogPassChange model

type AuthLogPassReset

type AuthLogPassReset struct {
	IPAddr     string `json:"ipaddr"`
	DeviceInfo string `json:"devinfo"`
}

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

type AuthLoginReq struct {
	ID   string `json:"id"`
	Pass string `json:"pass"`
}

AuthLoginReq model

type AuthLoginRes

type AuthLoginRes struct {
	JWT string `json:"jwt"`
}

AuthLoginRes 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 struct {
	FolderID string `json:"folder_id"`
	Title    string `json:"title"`
}

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

type MemberInfo struct {
	Member     Profile `json:"member"`
	Permission int     `json:"permission"`
}

MemberInfo model

type MemberInfoReq

type MemberInfoReq struct {
	Member     string `json:"member"`
	Permission int    `json:"permission"`
}

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

type SearchTeamRes struct {
	Total int       `json:"total"`
	Teams []Profile `json:"teams"`
}

SearchTeamRes model

type SearchUserRes

type SearchUserRes struct {
	Total int       `json:"total"`
	Users []Profile `json:"users"`
}

SearchUserRes model

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL