Documentation ¶
Index ¶
- type ApiResponse
- type Board
- type Content
- type Datetimes
- type Label
- type Member
- type Permission
- type Project
- type Task
- type TaskList
- type UpdateBoard
- type UpdateDatetimes
- type UpdateLabel
- type UpdatePermission
- type UpdateProject
- type UpdateTask
- type UpdateTaskList
- type UpdateUser
- type UrlIds
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiResponse ¶
type ApiResponse struct { Code int `json:"code,omitempty"` Message string `json:"message,omitempty"` Data interface{} `json:"data,omitempty"` }
func (*ApiResponse) Error ¶
func (r *ApiResponse) Error(code int, message string)
func (*ApiResponse) Set ¶
func (r *ApiResponse) Set(code int, message string, data interface{})
type Member ¶
type Member struct { Id int `json:"id"` Nickname string `json:"nickname" valid:"length(3|32)"` Avatar string `json:"avatar"` IsOwner bool `json:"isOwner"` Permissions *Permission `json:"permissions"` }
type Permission ¶
type Project ¶
type Project struct { Id int `json:"id,omitempty"` OwnerId int `json:"ownerId,omitempty"` DefaultPermissions *Permission `json:"defaultPermissions,omitempty"` Datetimes *Datetimes `json:"datetimes,omitempty"` Title string `json:"title" valid:"length(1|50)"` Description string `json:"description,omitempty"` }
type UpdateBoard ¶
type UpdateBoard struct { DefaultPermissions *UpdatePermission `json:"defaultPermissions,omitempty"` Datetimes *UpdateDatetimes `json:"datetimes,omitempty"` Title *string `json:"title"` }
type UpdateDatetimes ¶
type UpdateLabel ¶
type UpdatePermission ¶
type UpdateProject ¶
type UpdateProject struct { DefaultPermissions *UpdatePermission `json:"defaultPermissions,omitempty"` Datetimes *UpdateDatetimes `json:"datetimes,omitempty"` Title *string `json:"title" valid:"length(1|50)"` Description *string `json:"description,omitempty"` }
type UpdateTask ¶
type UpdateTask struct { ListId *int `json:"listId" valid:"type(*int)"` Title *string `json:"title"` Description *string `json:"description,omitempty"` Datetimes *UpdateDatetimes `json:"datetimes,omitempty"` Position *int `json:"position" valid:"type(*int)"` }
type UpdateTaskList ¶
type UpdateUser ¶
type UpdateUser struct { Nickname *string `json:"nickname" valid:"length(3|32)"` Firstname *string `json:"firstname" valid:"length(1|32)"` Lastname *string `json:"lastname" valid:"length(1|32)"` Email *string `json:"email" valid:"email"` Phone *string `json:"phone" valid:"numeric"` Avatar *string `json:"avatar"` }
type User ¶
type User struct { Id int `json:"id,omitempty"` Nickname string `json:"nickname" valid:"length(3|32)"` Firstname string `json:"firstname" valid:"length(1|32)"` Lastname string `json:"lastname" valid:"length(1|32)"` Email string `json:"email" valid:"email"` Phone string `json:"phone" valid:"numeric"` Password string `json:"password" valid:"length(6|32)"` Avatar string `json:"avatar"` }
Click to show internal directories.
Click to hide internal directories.