Base Project

This commit is contained in:
Tran Anh Tuan
2026-05-08 14:32:24 +07:00
parent 5a9249c9ea
commit 6a4a96e0ca
74 changed files with 6749 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
package requests
type BodyRegisterRequest struct {
Username string `json:"username" binding:"required"`
Email string `json:"email" binding:"required,email"`
FullName string `json:"fullName"`
Password string `json:"password" binding:"required,min=8"`
}
type BodyLoginRequest struct {
Username string `json:"username" binding:"required"`
Password string `json:"password" binding:"required"`
}

View File

@@ -0,0 +1,6 @@
package requests
type CreateRoleRequest struct {
Name string `json:"name" binding:"required"`
Description string `json:"description"`
}

View File

@@ -0,0 +1,13 @@
package requests
type CreateWarehouseRequest struct {
Name string `json:"name" binding:"required"`
Description string `json:"description"`
Address string `json:"address" binding:"required"`
}
type UpdateWarehouseRequest struct {
Name string `json:"name"`
Description string `json:"description"`
Address string `json:"address"`
}