v1

package
v0.0.0-...-8446c33 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CategoriesCollections

func CategoriesCollections(m *mongo.Database)

CategoriesCollections ...

func ChangePass

func ChangePass(id string, req *requestModel.ChangePassReqModel) map[string]interface{}

ChangePass ...

func Create

func Create(id string, req *requestModel.CreateUserReq) map[string]interface{}

Create ..

func CreateCategories

func CreateCategories(id string, req *requestModel.CreateCatReq) map[string]interface{}

CreateCategories ...

func CreateCustomer

func CreateCustomer(id string, req *requestModel.CustomerReq) map[string]interface{}

CreateCustomer ...

func CreateProduct

func CreateProduct(id string, req *requestModel.CreateProdReq) map[string]interface{}

CreateProduct ...

func CreateRoles

func CreateRoles(id string, req *reqModel.CreateRoleReq) map[string]interface{}

CreateRoles ...

func CreateTransactions

func CreateTransactions(id string, req *reqModel.TransactionReq) map[string]interface{}

CreateTransactions ...

func CustomersCollections

func CustomersCollections(m *mongo.Database)

CustomersCollections ...

func DeleteByID

func DeleteByID(userID string, id string) map[string]interface{}

DeleteByID ..

func DeleteCategoriesByID

func DeleteCategoriesByID(userID string, id string) map[string]interface{}

DeleteCategoriesByID ..

func DeleteProductByID

func DeleteProductByID(userID string, id string) map[string]interface{}

DeleteProductByID ..

func GetAll

func GetAll() map[string]interface{}

GetAll ...

func GetAllCategories

func GetAllCategories() map[string]interface{}

GetAllCategories ...

func GetAllCustomer

func GetAllCustomer() map[string]interface{}

GetAllCustomer ...

func GetAllProduct

func GetAllProduct() map[string]interface{}

GetAllProduct ...

func GetAllRoles

func GetAllRoles() map[string]interface{}

GetAllRoles ...

func GetByID

func GetByID(id string) map[string]interface{}

GetByID ..

func GetCategoriesByID

func GetCategoriesByID(id string) map[string]interface{}

GetCategoriesByID ...

func GetCustomerByID

func GetCustomerByID(id string) map[string]interface{}

GetCustomerByID ...

func GetProductByID

func GetProductByID(id string) map[string]interface{}

GetProductByID ...

func Login

func Login(model *models.User) map[string]interface{}

Login ...

func ProductsCollections

func ProductsCollections(m *mongo.Database)

ProductsCollections ...

func RolesCollections

func RolesCollections(m *mongo.Database)

RolesCollections ...

func TransactionsCollections

func TransactionsCollections(m *mongo.Database)

TransactionsCollections ...

func Update

func Update(id string, user *requestModel.EditUserReq) map[string]interface{}

Update ..

func UpdateCategories

func UpdateCategories(id string, category *requestModel.UpdateCatReq) map[string]interface{}

UpdateCategories ..

func UpdateProduct

func UpdateProduct(id string, product *requestModel.UpdateProdReq) map[string]interface{}

UpdateProduct ..

func UserCollections

func UserCollections(m *mongo.Database)

UserCollections to get user collection

Types

type UserService

type UserService struct {
	User models.User
}

UserService get struct from models

Jump to

Keyboard shortcuts

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