Refactor api code: split between packages
This commit is contained in:
6
internal/dto/usersignup.go
Normal file
6
internal/dto/usersignup.go
Normal file
@@ -0,0 +1,6 @@
|
||||
package dto
|
||||
|
||||
type UserSignup struct {
|
||||
Username string `json:"username" binding:"required,min=2,max=20"`
|
||||
Password string `json:"password" binding:"required,min=6,max=100"`
|
||||
}
|
||||
Reference in New Issue
Block a user