Added authorization
This commit is contained in:
parent
c3c3d65d32
commit
b96dd39795
50 changed files with 685 additions and 410 deletions
|
|
@ -1,8 +1,10 @@
|
|||
package requests
|
||||
|
||||
type CreatePostRequest struct {
|
||||
Title string `json:"title" validate:"required,min=8,max=255"`
|
||||
Description string `json:"description" validate:"required,min=8,max=255"`
|
||||
Content string `json:"content" validate:"required,min=36"`
|
||||
UserId string `json:"userId" validate:"required,uuid5"`
|
||||
Title string `json:"title" validate:"required,min=8,max=255"`
|
||||
Description string `json:"description" validate:"required,min=8,max=255"`
|
||||
Content string `json:"content" validate:"required,min=36"`
|
||||
UserId string `json:"userId" validate:"required,uuid5"`
|
||||
Category string `json:"category"`
|
||||
Tags []string `json:"tags"`
|
||||
}
|
||||
|
|
|
|||
6
internal/interfaces/api/requests/login_user_request.go
Normal file
6
internal/interfaces/api/requests/login_user_request.go
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
package requests
|
||||
|
||||
type LoginUserRequest struct {
|
||||
Username string `json:"username" validate:"required,min=3,max=32"`
|
||||
Password string `json:"password" validate:"required,min=6,max=32,password"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue