Documentation
¶
Index ¶
- Constants
- func ConvertCustomerToEditReq(customer db.Customer) *request.EditCustomer
- func CreateCustomer(userID uuid.UUID, req request.CreateCustomer) (*db.Customer, *apperror.Error)
- func CreateFakeCustomers(userID uuid.UUID, amount uint32) *apperror.Error
- func DashboardStats(userID uuid.UUID) ([]dao.CustomerMonthlyRegistrations, *apperror.Error)
- func DeleteCustomer(userID, customerID uuid.UUID) *apperror.Error
- func SearchCustomers(userID uuid.UUID, req request.SearchCustomersNormalized) ([]db.Customer, uint32, *apperror.Error)
- func UpdateCustomer(userID uuid.UUID, req request.EditCustomer) *apperror.Error
- func UserAuth(token string) (*db.User, *apperror.Error)
- func UserLogin(req request.LoginUser) (*db.User, *apperror.Error)
- func UserLogout(user *db.User) *apperror.Error
- func UserRegister(req request.RegisterUser) (*db.User, *apperror.Error)
- func UserUpdate(user *db.User, req request.EditUser) *apperror.Error
- func ViewCustomer(userID, customerID uuid.UUID) (*db.Customer, *apperror.Error)
Constants ¶
View Source
const ( PaginationPageSize = 25 PaginationPagesLimit = 10 )
Variables ¶
This section is empty.
Functions ¶
func ConvertCustomerToEditReq ¶
func ConvertCustomerToEditReq(customer db.Customer) *request.EditCustomer
func CreateCustomer ¶
func CreateFakeCustomers ¶
func DashboardStats ¶
func SearchCustomers ¶
func UpdateCustomer ¶
func UserRegister ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.