dto

package
v0.0.0-...-3ddb297 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateNewCardReq

type CreateNewCardReq struct {
	ColumnID uint32 `json:"columnID"`
	Card     struct {
		Title       string `json:"title"`
		Description string `json:"description"`
		AssignedTo  uint32 `json:"assignedTo"`
		DueDate     uint32 `json:"duedate"`
	} `json:"card"`
}

type CreateNewColumnReq

type CreateNewColumnReq struct {
	ColumnName string `json:"columnName"`
}

type CreateNewTeamReq

type CreateNewTeamReq struct {
	TeamName string `json:"teamName"`
}

type CreateProjectReq

type CreateProjectReq struct {
	ProjectName string `json:"projectName"`
}

type CreateUserReq

type CreateUserReq struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type DeleteCardReq

type DeleteCardReq struct {
	CardID uint32 `json:"cardID"`
}

type DeleteColumn

type DeleteColumn struct {
	ColumnID uint32 `json:"columnID"`
}

type GetAllProjectFromTeamIDResp

type GetAllProjectFromTeamIDResp struct {
	RespError
	Projects []*usrmanrpc.Project `json:"projects"`
}

func (*GetAllProjectFromTeamIDResp) SetData

func (r *GetAllProjectFromTeamIDResp) SetData(prjs []*usrmanrpc.Project)

type GetAllTeamByUserIDResp

type GetAllTeamByUserIDResp struct {
	RespError
	Teams []*usrmanrpc.Team `json:"teams"`
}

func (*GetAllTeamByUserIDResp) SetData

func (r *GetAllTeamByUserIDResp) SetData(teams []*usrmanrpc.Team)

type GetCardByIDResp

type GetCardByIDResp struct {
	RespError
	Card *ccmanrpc.Card `json:"card"`
}

func (*GetCardByIDResp) SetData

func (r *GetCardByIDResp) SetData(card *ccmanrpc.Card)

type GetProjectDetailsResp

type GetProjectDetailsResp struct {
	RespError
	Project *usrmanrpc.Project `json:"project"`
	Column  []*ccmanrpc.Column `json:"columns"`
}

func (*GetProjectDetailsResp) SetData

func (r *GetProjectDetailsResp) SetData(prj *usrmanrpc.Project, cols []*ccmanrpc.Column)

type GetRecentCreatedProjectByUserIDResp

type GetRecentCreatedProjectByUserIDResp struct {
	RespError
	Projects []*usrmanrpc.Project `json:"projects"`
}

func (*GetRecentCreatedProjectByUserIDResp) SetData

type GetTeamByIDResp

type GetTeamByIDResp struct {
	RespError
	Team *usrmanrpc.Team `json:"team"`
}

func (*GetTeamByIDResp) SetData

func (r *GetTeamByIDResp) SetData(team *usrmanrpc.Team)

type GetUserNameResp

type GetUserNameResp struct {
	RespError
	Users []*usrmanrpc.User `json:"users"`
}

func (*GetUserNameResp) SetData

func (r *GetUserNameResp) SetData(users []*usrmanrpc.User)

type MoveCardColReq

type MoveCardColReq struct {
	CardID   uint32 `json:"cardID"`
	AboveIdx uint32 `json:"aboveOfIdx"`
	ColumnID uint32 `json:"columnID"`
}

type ReorderCard

type ReorderCard struct {
	CardID   uint32 `json:"cardID"`
	AboveIdx uint32 `json:"aboveOfIdx"`
	ColumnID uint32 `json:"columnID"`
}

ReorderCard if move in same col, colID = 0

type ReorderCardOneColumnReq

type ReorderCardOneColumnReq struct {
	ColumnID  uint32   `json:"columnID"`
	CardIndex []uint32 `json:"cardIndex"`
}

type Resp

type Resp struct {
	RespError
	Data interface{} `json:"data,omitempty"`
}

func (*Resp) SetData

func (r *Resp) SetData(data interface{}) *Resp

type RespError

type RespError struct {
	Error struct {
		Code    int    `json:"code"`
		Message string `json:"message"`
	} `json:"error"`
}

func (*RespError) SetCode

func (r *RespError) SetCode(code int) *RespError

func (*RespError) SetCodeMsg

func (r *RespError) SetCodeMsg(code int, msg string) *RespError

func (*RespError) SetMessage

func (r *RespError) SetMessage(msg string) *RespError

type UpdateCardInfoReq

type UpdateCardInfoReq struct {
	ColumnID uint32 `json:"columnID"`
	Card     struct {
		ID          uint32 `json:"id"`
		Title       string `json:"title"`
		Description string `json:"description"`
		AssignedTo  uint32 `json:"assignedTo"`
		DueDate     uint32 `json:"duedate"`
	} `json:"card"`
}

type UpdateColumnIndex

type UpdateColumnIndex struct {
	ColumnID  uint32 `json:"columnID"`
	NextOfIdx uint32 `json:"nextOfIndex"`
}

type UpdateColumnReq

type UpdateColumnReq struct {
	ColumnID uint32           `json:"columnID"`
	Column   *ccmanrpc.Column `json:"column"`
}

type UpdateTeamMemberReq

type UpdateTeamMemberReq struct {
	Op       string `json:"op"`
	MemberID uint32 `json:"memberID"`
}

type UpdateUserReq

type UpdateUserReq struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type UserLoginReq

type UserLoginReq struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type UserLoginResp

type UserLoginResp struct {
	RespError
	Data struct {
		Token string `json:"token"`
	} `json:"data"`
}

func (*UserLoginResp) SetToken

func (r *UserLoginResp) SetToken(token string)

Jump to

Keyboard shortcuts

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