types

package
v0.0.0-...-e5601fe Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BCAError

type BCAError struct {
	Code    int   `json:"code"`
	Message error `json:"message"`
}

func (*BCAError) Error

func (e *BCAError) Error() string

type Company

type Company struct {
	ID        uuid.UUID `json:"id"`
	Ruc       string    `json:"ruc"`
	Name      string    `json:"name"`
	Employees uint      `json:"employees"`
	IsActive  bool      `json:"is_active"`
}

type CreateCompany

type CreateCompany struct {
	Company
	Email    string `json:"email"`
	UserName string `json:"user_name"`
	Password string `json:"password"`
}

type CreateUser

type CreateUser struct {
	User
	Password string `json:"password"`
}

type Role

type Role struct {
	ID   string
	Name string
}

type User

type User struct {
	ID        uuid.UUID `json:"id"`
	Email     string    `json:"email"`
	Name      string    `json:"name"`
	RoleID    string    `json:"role_id"`
	CompanyID uuid.UUID `json:"company_id"`
}

Jump to

Keyboard shortcuts

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