models

package
v0.0.0-...-9e197ba Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessDetails

type AccessDetails struct {
	AccessUUID string `json:"access_uuid"`
	UserUUID   string `json:"user_uuid"`
}

type MetaData

type MetaData struct {
	Status     string `json:"status"`
	StatusCode int    `json:"status_code"`
	Success    bool   `json:"success"`
	Message    string `json:"message"`
}

=== Response ===

type RequestCreateToDo

type RequestCreateToDo struct {
	ToDoTitle   string `json:"todo_title"`
	ToDoContext string `json:"todo_context"`
}

type RequestDeleteToDo

type RequestDeleteToDo struct {
	ToDoUUID uuid.UUID `json:"todo_uuid"`
}

type RequestJoinUser

type RequestJoinUser struct {
	Email    string `json:"email"`
	Password string `json:"password"`
	NickName string `json:"nick_name"`
}

=== Request ===

type RequestLoginUser

type RequestLoginUser struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type RequestUpdateToDo

type RequestUpdateToDo struct {
	ToDoUUID    uuid.UUID `json:"todo_uuid"`
	ToDoTitle   string    `json:"todo_title"`
	ToDoContext string    `json:"todo_context"`
}

type ResponseError

type ResponseError struct {
	Meta        MetaData  `json:"meta"`
	ResponsedAt time.Time `json:"responsed_at"`
}

type ResponseOk

type ResponseOk struct {
	Meta        MetaData  `json:"meta"`
	ResponsedAt time.Time `json:"responsed_at"`
}

type ResponseOkCreateToDo

type ResponseOkCreateToDo struct {
	Meta        MetaData  `json:"meta"`
	Data        *ent.ToDo `json:"data"`
	ResponsedAt time.Time `json:"responsed_at"`
}

type ResponseOkJoinUser

type ResponseOkJoinUser struct {
	Meta        MetaData  `json:"meta"`
	Data        ent.User  `json:"data"`
	ResponsedAt time.Time `json:"responsed_at"`
}

type ResponseOkLoginUser

type ResponseOkLoginUser struct {
	Meta        MetaData   `json:"meta"`
	Data        TokenDatas `json:"data"`
	ResponsedAt time.Time  `json:"responsed_at"`
}

type ResponseOkLogout

type ResponseOkLogout struct {
	Meta        MetaData  `json:"meta"`
	Data        int64     `json:"data"`
	ResponsedAt time.Time `json:"responsed_at"`
}

type ResponseOkReadToDo

type ResponseOkReadToDo struct {
	Meta        MetaData    `json:"meta"`
	Data        []*ent.ToDo `json:"data"`
	ResponsedAt time.Time   `json:"responsed_at"`
}

type ResponseOkUpdateToDo

type ResponseOkUpdateToDo struct {
	Meta        MetaData  `json:"meta"`
	Data        int       `json:"data"`
	ResponsedAt time.Time `json:"responsed_at"`
}

type ToDo

type ToDo struct {
	UserUUID    uuid.UUID `json:"user_uuid"`
	ToDoUUID    uuid.UUID `json:"todo_uuid"`
	ToDoTitle   string    `json:"todo_title"`
	ToDoContext string    `json:"todo_context"`
	UpdatedAt   time.Time `json:"updated_at"`
	CreatedAt   time.Time `json:"created_at"`
}

type TokenDatas

type TokenDatas struct {
	UserUUID     uuid.UUID `json:"user_uuid"`
	AccessToken  string    `json:"access_token"`
	RefreshToken string    `json:"refresh_token"`
}

type TokenDetails

type TokenDetails struct {
	UserUUID     uuid.UUID `json:"user_uuid"`
	AccessToken  string    `json:"access_token"`
	RefreshToken string    `json:"refresh_token"`
	AccessUUID   uuid.UUID `json:"access_uuid"`
	RefreshUUID  uuid.UUID `json:"refresh_uuid"`
	AtExpires    int64     `json:"at_expires"`
	RtExpires    int64     `json:"rt_expires"`
}

type UpdateToDo

type UpdateToDo struct {
	UserUUID    uuid.UUID `json:"user_uuid"`
	ToDoUUID    uuid.UUID `json:"todo_uuid"`
	ToDoTitle   string    `json:"todo_title"`
	ToDoContext string    `json:"todo_context"`
}

type User

type User struct {
	UserUUID     uuid.UUID `json:"user_uuid"`
	UserEmail    string    `json:"user_email"`
	UserPassword string    `json:"user_password"`
	UserNickName string    `json:"user_nickname"`
	CreatedAt    time.Time `json:"created_at"`
	UpdatedAt    time.Time `json:"updated_at"`
}

Jump to

Keyboard shortcuts

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