dto

package
v0.0.0-...-a48e89d Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2025 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatePost

type CreatePost struct {
	Title    string `json:"title" binding:"required,min=5"`
	Content  string `json:"content" binding:"min=6"`
	AuthorId uint   `json:"authorId" binding:"required,min=1,max=100"`
}

type LoginByUsernameRequest

type LoginByUsernameRequest struct {
	Username string `json:"username" binding:"required,min=5"`
	Password string `json:"password" binding:"required,min=6"`
}

type RegisterUserByUsernameRequest

type RegisterUserByUsernameRequest struct {
	Username string `json:"username" binding:"required,min=5"`
	Email    string `json:"email" binding:"min=6,email"`
	Password string `json:"password" binding:"required,password,min=6"`
}

type TokenDetail

type TokenDetail struct {
	AccessToken            string `json:"accessToken"`
	RefreshToken           string `json:"refreshToken"`
	AccessTokenExpireTime  int64  `json:"accessTokenExpireTime"`
	RefreshTokenExpireTime int64  `json:"refreshTokenExpireTime"`
}

type UpdatePost

type UpdatePost struct {
	Title   string `json:"title" binding:"min=5"`
	Content string `json:"content" binding:"min=6"`
}

Jump to

Keyboard shortcuts

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