Documentation
¶
Index ¶
- Constants
- func AllOrders(c *fiber.Ctx) error
- func AllPermissions(c *fiber.Ctx) error
- func AllProducts(c *fiber.Ctx) error
- func AllRoles(c *fiber.Ctx) error
- func AllUsers(c *fiber.Ctx) error
- func Chart(c *fiber.Ctx) error
- func CreateFile(filePath string) error
- func CreateProduct(c *fiber.Ctx) error
- func CreateRole(c *fiber.Ctx) error
- func CreateUser(c *fiber.Ctx) error
- func DeleteProduct(c *fiber.Ctx) error
- func DeleteRole(c *fiber.Ctx) error
- func DeleteUser(c *fiber.Ctx) error
- func Export(c *fiber.Ctx) error
- func GetProduct(c *fiber.Ctx) error
- func GetRole(c *fiber.Ctx) error
- func GetUser(c *fiber.Ctx) error
- func Hello(c *fiber.Ctx) error
- func Login(c *fiber.Ctx) error
- func Logout(c *fiber.Ctx) error
- func Register(c *fiber.Ctx) error
- func UpdateInfo(c *fiber.Ctx) error
- func UpdatePassword(c *fiber.Ctx) error
- func UpdateProduct(c *fiber.Ctx) error
- func UpdateRole(c *fiber.Ctx) error
- func UpdateUser(c *fiber.Ctx) error
- func Upload(c *fiber.Ctx) error
- func User(c *fiber.Ctx) error
- type LoginBodyData
- type RegisterBodyData
- type RoleCreateDTO
- type Sales
- type UpdateBodyData
- type UpdatePasswordBody
Constants ¶
View Source
const DefaultPassword = "changeme"
Variables ¶
This section is empty.
Functions ¶
func AllPermissions ¶
func AllProducts ¶
func CreateFile ¶
func CreateProduct ¶
func CreateRole ¶
func CreateUser ¶
This function is for when a registered user creates another user
func DeleteProduct ¶
func DeleteRole ¶
func DeleteUser ¶
func GetProduct ¶
func UpdateInfo ¶
func UpdatePassword ¶
func UpdateProduct ¶
func UpdateRole ¶
func UpdateUser ¶
Types ¶
type LoginBodyData ¶
login body
type RegisterBodyData ¶
type RegisterBodyData struct {
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Email string `json:"email"`
Password string `json:"password"`
PasswordConfirm string `json:"password_confirm"`
}
register body
type RoleCreateDTO ¶
Data Transfer Object
type UpdateBodyData ¶
type UpdateBodyData struct {
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Email string `json:"email"`
}
update body data
type UpdatePasswordBody ¶
type UpdatePasswordBody struct {
Password string `json:"password"`
PasswordConfirm string `json:"password_confirm"`
}
update password body
Click to show internal directories.
Click to hide internal directories.