dto

package
v0.0.0-...-b00f2dc Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 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 BookingDTO

type BookingDTO struct {
	Id               string           `json:"id"`
	Title            string           `json:"title"`
	Content          string           `json:"content"`
	UserId           string           `json:"user_id"`
	BookingUser      UserDTO          `json:"booking_user"`
	BookingSourceId  string           `json:"booking_source_id"`
	BookingSource    BookingSourceDTO `json:"booking_source"`
	Status           string           `json:"status"`
	BookingStartTime int64            `json:"booking_start_time"`
	BookingEndTime   *int64           `json:"booking_end_time"`
}

type BookingSourceDTO

type BookingSourceDTO struct {
	Id         string      `json:"id"`
	Name       string      `json:"name"`
	CategoryId string      `json:"category_id"`
	Category   CategoryDTO `json:"category"`
}

type CaptchaResponse

type CaptchaResponse struct {
	CaptchaId     string `json:"captcha_id"`
	PicPath       string `json:"picture_path"`
	CaptchaLength int    `json:"captcha_length"`
}

type CaseTaskDTO

type CaseTaskDTO struct {
	Id              string              `json:"id"`
	Name            string              `json:"name"`
	CaseTime        int64               `json:"case_time"`
	Content         string              `json:"content"`
	CategoryId      string              `json:"category_id"`
	UserId          string              `json:"user_id"`
	CaseUser        UserDTO             `json:"case_user"`
	Status          string              `json:"status"`
	CaseTaskDetails []CaseTaskDetailDTO `json:"case_task_details"`
}

type CaseTaskDetailDTO

type CaseTaskDetailDTO struct {
	Id             string  `json:"id"`
	CaseTaskId     string  `json:"case_task_id"`
	Name           string  `json:"name"`
	CaseTime       int64   `json:"case_time"`
	ExpirationTime *int64  `json:"expiration_time"`
	ExpirationDays int32   `json:"expiration_days"`
	Content        string  `json:"content"`
	UserId         string  `json:"user_id"`
	CaseUser       UserDTO `json:"case_user"`
	Status         string  `json:"status"`
}

type CategoryDTO

type CategoryDTO struct {
	Id           string `json:"id"`
	Name         string `json:"name"`
	Icon         string `json:"icon"`
	Order        int    `json:"order"`
	CategoryType string `json:"category_type"`
}

type DataListResponse

type DataListResponse[T any] struct {
	DataList   []T     `json:"data_list"`
	Pagination PageDTO `json:"page_info"`
}

type DataRequest

type DataRequest[T any] struct {
	Data T `json:"data"`
}

type DataResponse

type DataResponse[T any] struct {
	Data T `json:"data"`
}

type GetBookingListRequest

type GetBookingListRequest struct {
	BookingSourceId string  `json:"booking_source_id"`
	UserId          string  `json:"user_id"`
	Pagination      PageDTO `json:"page_info"`
}

type GetBookingSourceListRequest

type GetBookingSourceListRequest struct {
	CategoryId string  `json:"category_id"`
	Pagination PageDTO `json:"page_info"`
}

type GetCaseTaskListRequest

type GetCaseTaskListRequest struct {
	UserId     string  `json:"user_id"`
	CategoryId string  `json:"category_id"`
	Pagination PageDTO `json:"page_info"`
}

type GetCategoryListRequest

type GetCategoryListRequest struct {
	CategoryType string  `json:"category_type"`
	Pagination   PageDTO `json:"page_info"`
}

type GetDataListRequest

type GetDataListRequest[T any] struct {
	DataList   []T     `json:"data_list"`
	Pagination PageDTO `json:"page_info"`
}

type GetUserListRequest

type GetUserListRequest struct {
	UserId     string  `json:"user_id"`
	Pagination PageDTO `json:"page_info"`
}

type LoginRequest

type LoginRequest struct {
	Mobile    string `json:"mobile"`
	Password  string `json:"password"`
	CaptchaId string `json:"captcha_id"`
	Captcha   string `json:"captcha"`
}

type LoginResponse

type LoginResponse struct {
	User         UserDTO `json:"user"`
	AccessToken  string  `json:"access_token"`
	RefreshToken string  `json:"refresh_token"`
}

type PageDTO

type PageDTO struct {
	PageSize    int  `json:"page_size"`
	PageNumber  int  `json:"page_number"`
	HasNextPage bool `json:"has_next_page"`
}

type RefreshTokenRequest

type RefreshTokenRequest struct {
	RefreshToken string `json:"refresh_token"`
}

type RefreshTokenResponse

type RefreshTokenResponse struct {
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
}

type RegisterRequest

type RegisterRequest struct {
	User      UserDTO `json:"user"`
	CaptchaId string  `json:"captcha_id"`
	Captcha   string  `json:"captcha"`
}

type UserDTO

type UserDTO struct {
	UserId    string `json:"user_id"`
	Mobile    string `json:"mobile"`
	UserName  string `json:"user_name"`
	Password  string `json:"password"`
	DenyLogin bool   `json:"deny_login"`
}

Jump to

Keyboard shortcuts

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