Documentation ¶
Index ¶
- func CategoriesCollections(m *mongo.Database)
- func ChangePass(id string, req *requestModel.ChangePassReqModel) map[string]interface{}
- func Create(id string, req *requestModel.CreateUserReq) map[string]interface{}
- func CreateCategories(id string, req *requestModel.CreateCatReq) map[string]interface{}
- func CreateCustomer(id string, req *requestModel.CustomerReq) map[string]interface{}
- func CreateProduct(id string, req *requestModel.CreateProdReq) map[string]interface{}
- func CreateRoles(id string, req *reqModel.CreateRoleReq) map[string]interface{}
- func CreateTransactions(id string, req *reqModel.TransactionReq) map[string]interface{}
- func CustomersCollections(m *mongo.Database)
- func DeleteByID(userID string, id string) map[string]interface{}
- func DeleteCategoriesByID(userID string, id string) map[string]interface{}
- func DeleteProductByID(userID string, id string) map[string]interface{}
- func GetAll() map[string]interface{}
- func GetAllCategories() map[string]interface{}
- func GetAllCustomer() map[string]interface{}
- func GetAllProduct() map[string]interface{}
- func GetAllRoles() map[string]interface{}
- func GetByID(id string) map[string]interface{}
- func GetCategoriesByID(id string) map[string]interface{}
- func GetCustomerByID(id string) map[string]interface{}
- func GetProductByID(id string) map[string]interface{}
- func Login(model *models.User) map[string]interface{}
- func ProductsCollections(m *mongo.Database)
- func RolesCollections(m *mongo.Database)
- func TransactionsCollections(m *mongo.Database)
- func Update(id string, user *requestModel.EditUserReq) map[string]interface{}
- func UpdateCategories(id string, category *requestModel.UpdateCatReq) map[string]interface{}
- func UpdateProduct(id string, product *requestModel.UpdateProdReq) map[string]interface{}
- func UserCollections(m *mongo.Database)
- type UserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CategoriesCollections ¶
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 DeleteCategoriesByID ¶
DeleteCategoriesByID ..
func DeleteProductByID ¶
DeleteProductByID ..
func GetCategoriesByID ¶
GetCategoriesByID ...
func TransactionsCollections ¶
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 ¶
UserCollections to get user collection
Types ¶
Click to show internal directories.
Click to hide internal directories.