Documentation
¶
Index ¶
- type Manager
- func (m *Manager) AddActionPermissionsToGroup(groupId int, actions []types.Action) error
- func (m *Manager) AddPermissionGroupsToRole(roleId int, permissionGroupIds []int) error
- func (m *Manager) AddResourcePermissionsToGroup(groupId int, resources []types.Resource) error
- func (m *Manager) CreateOrder(p types.CreateOrderPayload) (int, error)
- func (m *Manager) CreatePermissionGroup(p types.CreatePermissionGroupPayload) (int, error)
- func (m *Manager) CreateProduct(p types.CreateProductPayload) (int, error)
- func (m *Manager) CreateProductAttribute(p types.CreateProductAttributePayload) (int, error)
- func (m *Manager) CreateProductBase(p types.CreateProductBasePayload) (int, error)
- func (m *Manager) CreateProductCategory(p types.CreateProductCategoryPayload) (int, error)
- func (m *Manager) CreateProductComment(p types.CreateProductCommentPayload) (int, error)
- func (m *Manager) CreateProductImage(productId int, p types.CreateProductImagePayload) (int, error)
- func (m *Manager) CreateProductOffer(p types.CreateProductOfferPayload) (int, error)
- func (m *Manager) CreateProductSpec(productId int, p types.CreateProductSpecPayload) (int, error)
- func (m *Manager) CreateProductTag(p types.CreateProductTagPayload) (int, error)
- func (m *Manager) CreateProductTagAssignments(productId int, tagIds []int) error
- func (m *Manager) CreateProductVariant(productId int, p types.CreateProductVariantPayload) (int, error)
- func (m *Manager) CreateRole(p types.CreateRolePayload) (int, error)
- func (m *Manager) CreateStore(p types.CreateStorePayload) (int, error)
- func (m *Manager) CreateStoreAddress(p types.CreateStoreAddressPayload) (int, error)
- func (m *Manager) CreateStorePhoneNumber(p types.CreateStorePhoneNumberPayload) (int, error)
- func (m *Manager) CreateUser(p types.CreateUserPayload) (int, error)
- func (m *Manager) CreateUserAddress(p types.CreateUserAddressPayload) (int, error)
- func (m *Manager) CreateUserPhoneNumber(p types.CreateUserPhoneNumberPayload) (int, error)
- func (m *Manager) CreateWalletTransaction(p types.CreateWalletTransactionPayload) (int, error)
- func (m *Manager) DeleteOrder(id int) error
- func (m *Manager) DeletePermissionGroup(id int) error
- func (m *Manager) DeleteProduct(id int) error
- func (m *Manager) DeleteProductAttribute(id int) error
- func (m *Manager) DeleteProductCategory(id int) error
- func (m *Manager) DeleteProductComment(id int) error
- func (m *Manager) DeleteProductImage(productId int, imageId int) error
- func (m *Manager) DeleteProductOffer(productId int, offerId int) error
- func (m *Manager) DeleteProductSpec(productId int, specId int) error
- func (m *Manager) DeleteProductTag(id int) error
- func (m *Manager) DeleteProductTagAssignments(productId int, tagIds []int) error
- func (m *Manager) DeleteProductVariant(productId int, variantId int) error
- func (m *Manager) DeleteRole(id int) error
- func (m *Manager) DeleteStore(id int) error
- func (m *Manager) DeleteStoreAddress(id int, storeId int) error
- func (m *Manager) DeleteStorePhoneNumber(id int, storeId int) error
- func (m *Manager) DeleteUser(id int) error
- func (m *Manager) DeleteUserAddress(id int, userId int) error
- func (m *Manager) DeleteUserPhoneNumber(id int, userId int) error
- func (m *Manager) DeleteWalletTransaction(walletId int, transactionId int) error
- func (m *Manager) GetOrderById(id int) (*types.Order, error)
- func (m *Manager) GetOrderProductVariants(orderId int) ([]types.OrderProductVariant, error)
- func (m *Manager) GetOrderProductVariantsInfo(orderId int) ([]types.OrderProductVariantInfo, error)
- func (m *Manager) GetOrderWithFullInfoById(id int) (*types.OrderWithFullInfo, error)
- func (m *Manager) GetOrders(query types.OrderSearchQuery) ([]types.Order, error)
- func (m *Manager) GetOrdersCount(query types.OrderSearchQuery) (int, error)
- func (m *Manager) GetOrdersWithFullInfo(query types.OrderSearchQuery) ([]types.OrderWithFullInfo, error)
- func (m *Manager) GetPermissionGroupById(id int) (*types.PermissionGroup, error)
- func (m *Manager) GetPermissionGroupByName(name string) (*types.PermissionGroup, error)
- func (m *Manager) GetPermissionGroupWithPermissionsById(id int) (*types.PermissionGroupWithPermissions, error)
- func (m *Manager) GetPermissionGroupWithPermissionsByName(name string) (*types.PermissionGroupWithPermissions, error)
- func (m *Manager) GetPermissionGroups(query types.PermissionGroupSearchQuery) ([]types.PermissionGroup, error)
- func (m *Manager) GetPermissionGroupsBasedOnActionPermission(actions []types.Action) ([]types.PermissionGroup, error)
- func (m *Manager) GetPermissionGroupsBasedOnResourcePermission(resources []types.Resource) ([]types.PermissionGroup, error)
- func (m *Manager) GetPermissionGroupsWithPermissions(query types.PermissionGroupSearchQuery) ([]types.PermissionGroupWithPermissions, error)
- func (m *Manager) GetProductAttributeById(id int) (*types.ProductAttribute, error)
- func (m *Manager) GetProductAttributeWithOptionsById(id int) (*types.ProductAttributeWithOptions, error)
- func (m *Manager) GetProductAttributes(query types.ProductAttributeSearchQuery) ([]types.ProductAttribute, error)
- func (m *Manager) GetProductAttributesCount(query types.ProductAttributeSearchQuery) (int, error)
- func (m *Manager) GetProductAttributesWithOptions(query types.ProductAttributeSearchQuery) ([]types.ProductAttributeWithOptions, error)
- func (m *Manager) GetProductBaseById(id int) (*types.ProductBase, error)
- func (m *Manager) GetProductById(id int) (*types.Product, error)
- func (m *Manager) GetProductCategories(query types.ProductCategorySearchQuery) ([]types.ProductCategory, error)
- func (m *Manager) GetProductCategoriesCount(query types.ProductCategorySearchQuery) (int, error)
- func (m *Manager) GetProductCategoriesWithParents(query types.ProductCategorySearchQuery) ([]types.ProductCategoryWithParents, error)
- func (m *Manager) GetProductCategoryById(id int) (*types.ProductCategory, error)
- func (m *Manager) GetProductCategoryWithParentsById(id int) (*types.ProductCategoryWithParents, error)
- func (m *Manager) GetProductCommentById(id int) (*types.ProductComment, error)
- func (m *Manager) GetProductCommentWithUserById(id int) (*types.ProductCommentWithUser, error)
- func (m *Manager) GetProductCommentsByProductId(productId int, query types.ProductCommentSearchQuery) ([]types.ProductComment, error)
- func (m *Manager) GetProductCommentsByUserId(userId int, query types.ProductCommentSearchQuery) ([]types.ProductComment, error)
- func (m *Manager) GetProductCommentsCountByProductId(productId int, query types.ProductCommentSearchQuery) (int, error)
- func (m *Manager) GetProductCommentsCountByUserId(userId int, query types.ProductCommentSearchQuery) (int, error)
- func (m *Manager) GetProductCommentsWithUserByProductId(productId int, query types.ProductCommentSearchQuery) ([]types.ProductCommentWithUser, error)
- func (m *Manager) GetProductExtendedById(id int) (*types.ProductExtended, error)
- func (m *Manager) GetProductImageById(id int) (*types.ProductImage, error)
- func (m *Manager) GetProductImages(productId int) ([]types.ProductImage, error)
- func (m *Manager) GetProductInventory(id int) (total int, inStock bool, err error)
- func (m *Manager) GetProductOfferById(id int) (*types.ProductOffer, error)
- func (m *Manager) GetProductOfferByProductId(productId int) (*types.ProductOffer, error)
- func (m *Manager) GetProductOffers(query types.ProductOfferSearchQuery) ([]types.ProductOffer, error)
- func (m *Manager) GetProductOffersCount(query types.ProductOfferSearchQuery) (int, error)
- func (m *Manager) GetProductOwnerStore(productId int) (*types.Store, error)
- func (m *Manager) GetProductSpecById(id int) (*types.ProductSpec, error)
- func (m *Manager) GetProductSpecs(productId int) ([]types.ProductSpec, error)
- func (m *Manager) GetProductTagById(id int) (*types.ProductTag, error)
- func (m *Manager) GetProductTags(query types.ProductTagSearchQuery) ([]types.ProductTag, error)
- func (m *Manager) GetProductTagsCount(query types.ProductTagSearchQuery) (int, error)
- func (m *Manager) GetProductVariantById(id int) (*types.ProductVariant, error)
- func (m *Manager) GetProductVariantWithAttributeSetById(id int) (*types.ProductVariantWithAttributeSet, error)
- func (m *Manager) GetProductVariants(productId int) ([]types.ProductVariant, error)
- func (m *Manager) GetProductVariantsWithAttributeSet(productId int) ([]types.ProductVariantWithAttributeSet, error)
- func (m *Manager) GetProducts(query types.ProductSearchQuery) ([]types.Product, error)
- func (m *Manager) GetProductsBase(query types.ProductSearchQuery) ([]types.ProductBase, error)
- func (m *Manager) GetProductsCount(query types.ProductSearchQuery) (int, error)
- func (m *Manager) GetRoleById(id int) (*types.Role, error)
- func (m *Manager) GetRoleByName(name string) (*types.Role, error)
- func (m *Manager) GetRoleWithPermissionGroupsById(id int) (*types.RoleWithPermissionGroups, error)
- func (m *Manager) GetRoleWithPermissionGroupsByName(name string) (*types.RoleWithPermissionGroups, error)
- func (m *Manager) GetRoles(query types.RolesSearchQuery) ([]types.Role, error)
- func (m *Manager) GetRolesBasedOnActionPermission(actions []types.Action) ([]types.Role, error)
- func (m *Manager) GetRolesBasedOnResourcePermission(resources []types.Resource) ([]types.Role, error)
- func (m *Manager) GetRolesWithPermissionGroups(query types.RolesSearchQuery) ([]types.RoleWithPermissionGroups, error)
- func (m *Manager) GetStoreAddressById(id int) (*types.StoreAddress, error)
- func (m *Manager) GetStoreAddresses(storeId int, query types.StoreAddressSearchQuery) ([]types.StoreAddress, error)
- func (m *Manager) GetStoreById(id int) (*types.Store, error)
- func (m *Manager) GetStoreByName(name string) (*types.Store, error)
- func (m *Manager) GetStoreOwnedProducts(storeId int) ([]types.StoreOwnedProduct, error)
- func (m *Manager) GetStorePhoneNumberById(id int) (*types.StorePhoneNumber, error)
- func (m *Manager) GetStorePhoneNumbers(storeId int, query types.StorePhoneNumberSearchQuery) ([]types.StorePhoneNumber, error)
- func (m *Manager) GetStoreSettings(storeId int) (*types.StoreSettings, error)
- func (m *Manager) GetStoreWithSettingsById(id int) (*types.StoreWithSettings, error)
- func (m *Manager) GetStores(query types.StoreSearchQuery) ([]types.Store, error)
- func (m *Manager) GetStoresCount(query types.StoreSearchQuery) (int, error)
- func (m *Manager) GetStoresWithSettings(query types.StoreSearchQuery) ([]types.StoreWithSettings, error)
- func (m *Manager) GetUserAddressById(id int) (*types.UserAddress, error)
- func (m *Manager) GetUserAddresses(userId int, query types.UserAddressSearchQuery) ([]types.UserAddress, error)
- func (m *Manager) GetUserByEmail(email string) (*types.User, error)
- func (m *Manager) GetUserById(id int) (*types.User, error)
- func (m *Manager) GetUserByUsername(username string) (*types.User, error)
- func (m *Manager) GetUserByUsernameOrEmail(username string, email string) (*types.User, error)
- func (m *Manager) GetUserPhoneNumberById(id int) (*types.UserPhoneNumber, error)
- func (m *Manager) GetUserPhoneNumbers(userId int, query types.UserPhoneNumberSearchQuery) ([]types.UserPhoneNumber, error)
- func (m *Manager) GetUserSettings(userId int) (*types.UserSettings, error)
- func (m *Manager) GetUserWallet(userId int) (*types.Wallet, error)
- func (m *Manager) GetUserWithSettingsById(id int) (*types.UserWithSettings, error)
- func (m *Manager) GetUserWithSettingsByUsername(username string) (*types.UserWithSettings, error)
- func (m *Manager) GetUsers(query types.UserSearchQuery) ([]types.User, error)
- func (m *Manager) GetUsersCount(query types.UserSearchQuery) (int, error)
- func (m *Manager) GetUsersWithSettings(query types.UserSearchQuery) ([]types.UserWithSettings, error)
- func (m *Manager) GetWalletTransactionById(id int) (*types.WalletTransaction, error)
- func (m *Manager) GetWalletTransactions(query types.WalletTransactionSearchQuery) ([]types.WalletTransaction, error)
- func (m *Manager) GetWalletTransactionsCount(query types.WalletTransactionSearchQuery) (int, error)
- func (m *Manager) IsRoleHasAllActionPermissions(actions []types.Action, roleId int) (bool, error)
- func (m *Manager) IsRoleHasAllResourcePermissions(resources []types.Resource, roleId int) (bool, error)
- func (m *Manager) IsRoleHasSomeActionPermissions(actions []types.Action, roleId int) (bool, error)
- func (m *Manager) IsRoleHasSomeResourcePermissions(resources []types.Resource, roleId int) (bool, error)
- func (m *Manager) IsStoreHasParticipationInOrder(orderId int, storeId int) (bool, error)
- func (m *Manager) RemoveActionPermissionsFromGroup(groupId int, actions []types.Action) error
- func (m *Manager) RemovePermissionGroupsFromRole(roleId int, permissionGroupIds []int) error
- func (m *Manager) RemoveResourcePermissionsFromGroup(groupId int, resources []types.Resource) error
- func (m *Manager) UpdateOrderPayment(orderId int, p types.UpdateOrderPaymentPayload) error
- func (m *Manager) UpdateOrderShipment(orderId int, p types.UpdateOrderShipmentPayload) error
- func (m *Manager) UpdatePermissionGroup(id int, p types.UpdatePermissionGroupPayload) error
- func (m *Manager) UpdateProduct(id int, p types.UpdateProductPayload) error
- func (m *Manager) UpdateProductAttribute(id int, p types.UpdateProductAttributePayload) error
- func (m *Manager) UpdateProductBase(id int, p types.UpdateProductBasePayload) error
- func (m *Manager) UpdateProductCategory(id int, p types.UpdateProductCategoryPayload) error
- func (m *Manager) UpdateProductComment(id int, p types.UpdateProductCommentPayload) error
- func (m *Manager) UpdateProductMainImage(productId int, imageId int) error
- func (m *Manager) UpdateProductOffer(productId int, offerId int, p types.UpdateProductOfferPayload) error
- func (m *Manager) UpdateProductSpec(productId int, specId int, p types.UpdateProductSpecPayload) error
- func (m *Manager) UpdateProductTag(id int, p types.UpdateProductTagPayload) error
- func (m *Manager) UpdateProductVariant(productId int, variantId int, p types.UpdateProductVariantPayload) error
- func (m *Manager) UpdateRole(id int, p types.UpdateRolePayload) error
- func (m *Manager) UpdateStore(id int, p types.UpdateStorePayload) error
- func (m *Manager) UpdateStoreAddress(id int, storeId int, p types.UpdateStoreAddressPayload) error
- func (m *Manager) UpdateStorePhoneNumber(id int, storeId int, p types.UpdateStorePhoneNumberPayload) error
- func (m *Manager) UpdateStoreSettings(storeId int, p types.UpdateStoreSettingsPayload) error
- func (m *Manager) UpdateUser(id int, p types.UpdateUserPayload) error
- func (m *Manager) UpdateUserAddress(id int, userId int, p types.UpdateUserAddressPayload) error
- func (m *Manager) UpdateUserPhoneNumber(id int, userId int, p types.UpdateUserPhoneNumberPayload) error
- func (m *Manager) UpdateUserSettings(userId int, p types.UpdateUserSettingsPayload) error
- func (m *Manager) UpdateWallet(id int, p types.UpdateWalletPayload) error
- func (m *Manager) UpdateWalletTransaction(walletId int, transactionId int, p types.UpdateWalletTransactionPayload) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) AddActionPermissionsToGroup ¶
func (*Manager) AddPermissionGroupsToRole ¶
func (*Manager) AddResourcePermissionsToGroup ¶
func (*Manager) CreateOrder ¶
func (m *Manager) CreateOrder(p types.CreateOrderPayload) (int, error)
func (*Manager) CreatePermissionGroup ¶
func (m *Manager) CreatePermissionGroup(p types.CreatePermissionGroupPayload) (int, error)
func (*Manager) CreateProduct ¶
func (m *Manager) CreateProduct(p types.CreateProductPayload) (int, error)
func (*Manager) CreateProductAttribute ¶
func (m *Manager) CreateProductAttribute(p types.CreateProductAttributePayload) (int, error)
func (*Manager) CreateProductBase ¶
func (m *Manager) CreateProductBase(p types.CreateProductBasePayload) (int, error)
func (*Manager) CreateProductCategory ¶
func (m *Manager) CreateProductCategory(p types.CreateProductCategoryPayload) (int, error)
func (*Manager) CreateProductComment ¶
func (m *Manager) CreateProductComment(p types.CreateProductCommentPayload) (int, error)
func (*Manager) CreateProductImage ¶
func (*Manager) CreateProductOffer ¶
func (m *Manager) CreateProductOffer(p types.CreateProductOfferPayload) (int, error)
func (*Manager) CreateProductSpec ¶
func (*Manager) CreateProductTag ¶
func (m *Manager) CreateProductTag(p types.CreateProductTagPayload) (int, error)
func (*Manager) CreateProductTagAssignments ¶
func (*Manager) CreateProductVariant ¶
func (*Manager) CreateRole ¶
func (m *Manager) CreateRole(p types.CreateRolePayload) (int, error)
func (*Manager) CreateStore ¶
func (m *Manager) CreateStore(p types.CreateStorePayload) (int, error)
func (*Manager) CreateStoreAddress ¶
func (m *Manager) CreateStoreAddress(p types.CreateStoreAddressPayload) (int, error)
func (*Manager) CreateStorePhoneNumber ¶
func (m *Manager) CreateStorePhoneNumber(p types.CreateStorePhoneNumberPayload) (int, error)
func (*Manager) CreateUser ¶
func (m *Manager) CreateUser(p types.CreateUserPayload) (int, error)
func (*Manager) CreateUserAddress ¶
func (m *Manager) CreateUserAddress(p types.CreateUserAddressPayload) (int, error)
func (*Manager) CreateUserPhoneNumber ¶
func (m *Manager) CreateUserPhoneNumber(p types.CreateUserPhoneNumberPayload) (int, error)
func (*Manager) CreateWalletTransaction ¶
func (m *Manager) CreateWalletTransaction(p types.CreateWalletTransactionPayload) (int, error)
func (*Manager) DeleteOrder ¶
func (*Manager) DeletePermissionGroup ¶
func (*Manager) DeleteProduct ¶
func (*Manager) DeleteProductAttribute ¶
func (*Manager) DeleteProductCategory ¶
func (*Manager) DeleteProductComment ¶
func (*Manager) DeleteProductImage ¶
func (*Manager) DeleteProductOffer ¶
func (*Manager) DeleteProductSpec ¶
func (*Manager) DeleteProductTag ¶
func (*Manager) DeleteProductTagAssignments ¶
func (*Manager) DeleteProductVariant ¶
func (*Manager) DeleteRole ¶
func (*Manager) DeleteStore ¶
func (*Manager) DeleteStoreAddress ¶
func (*Manager) DeleteStorePhoneNumber ¶
func (*Manager) DeleteUser ¶
func (*Manager) DeleteUserPhoneNumber ¶
func (*Manager) DeleteWalletTransaction ¶
func (*Manager) GetOrderProductVariants ¶
func (m *Manager) GetOrderProductVariants(orderId int) ([]types.OrderProductVariant, error)
func (*Manager) GetOrderProductVariantsInfo ¶
func (m *Manager) GetOrderProductVariantsInfo( orderId int, ) ([]types.OrderProductVariantInfo, error)
func (*Manager) GetOrderWithFullInfoById ¶
func (m *Manager) GetOrderWithFullInfoById(id int) (*types.OrderWithFullInfo, error)
func (*Manager) GetOrdersCount ¶
func (m *Manager) GetOrdersCount( query types.OrderSearchQuery, ) (int, error)
func (*Manager) GetOrdersWithFullInfo ¶
func (m *Manager) GetOrdersWithFullInfo( query types.OrderSearchQuery, ) ([]types.OrderWithFullInfo, error)
func (*Manager) GetPermissionGroupById ¶
func (m *Manager) GetPermissionGroupById(id int) (*types.PermissionGroup, error)
func (*Manager) GetPermissionGroupByName ¶
func (m *Manager) GetPermissionGroupByName(name string) (*types.PermissionGroup, error)
func (*Manager) GetPermissionGroupWithPermissionsById ¶
func (m *Manager) GetPermissionGroupWithPermissionsById( id int, ) (*types.PermissionGroupWithPermissions, error)
func (*Manager) GetPermissionGroupWithPermissionsByName ¶
func (m *Manager) GetPermissionGroupWithPermissionsByName( name string, ) (*types.PermissionGroupWithPermissions, error)
func (*Manager) GetPermissionGroups ¶
func (m *Manager) GetPermissionGroups( query types.PermissionGroupSearchQuery, ) ([]types.PermissionGroup, error)
func (*Manager) GetPermissionGroupsBasedOnActionPermission ¶
func (*Manager) GetPermissionGroupsBasedOnResourcePermission ¶
func (*Manager) GetPermissionGroupsWithPermissions ¶
func (m *Manager) GetPermissionGroupsWithPermissions( query types.PermissionGroupSearchQuery, ) ([]types.PermissionGroupWithPermissions, error)
func (*Manager) GetProductAttributeById ¶
func (m *Manager) GetProductAttributeById(id int) (*types.ProductAttribute, error)
func (*Manager) GetProductAttributeWithOptionsById ¶
func (m *Manager) GetProductAttributeWithOptionsById( id int, ) (*types.ProductAttributeWithOptions, error)
func (*Manager) GetProductAttributes ¶
func (m *Manager) GetProductAttributes( query types.ProductAttributeSearchQuery, ) ([]types.ProductAttribute, error)
func (*Manager) GetProductAttributesCount ¶
func (m *Manager) GetProductAttributesCount( query types.ProductAttributeSearchQuery, ) (int, error)
func (*Manager) GetProductAttributesWithOptions ¶
func (m *Manager) GetProductAttributesWithOptions( query types.ProductAttributeSearchQuery, ) ([]types.ProductAttributeWithOptions, error)
func (*Manager) GetProductBaseById ¶
func (m *Manager) GetProductBaseById(id int) (*types.ProductBase, error)
func (*Manager) GetProductCategories ¶
func (m *Manager) GetProductCategories( query types.ProductCategorySearchQuery, ) ([]types.ProductCategory, error)
func (*Manager) GetProductCategoriesCount ¶
func (m *Manager) GetProductCategoriesCount( query types.ProductCategorySearchQuery, ) (int, error)
func (*Manager) GetProductCategoriesWithParents ¶
func (m *Manager) GetProductCategoriesWithParents( query types.ProductCategorySearchQuery, ) ([]types.ProductCategoryWithParents, error)
func (*Manager) GetProductCategoryById ¶
func (m *Manager) GetProductCategoryById(id int) (*types.ProductCategory, error)
func (*Manager) GetProductCategoryWithParentsById ¶
func (m *Manager) GetProductCategoryWithParentsById( id int, ) (*types.ProductCategoryWithParents, error)
func (*Manager) GetProductCommentById ¶
func (m *Manager) GetProductCommentById(id int) (*types.ProductComment, error)
func (*Manager) GetProductCommentWithUserById ¶
func (m *Manager) GetProductCommentWithUserById(id int) (*types.ProductCommentWithUser, error)
func (*Manager) GetProductCommentsByProductId ¶
func (m *Manager) GetProductCommentsByProductId( productId int, query types.ProductCommentSearchQuery, ) ([]types.ProductComment, error)
func (*Manager) GetProductCommentsByUserId ¶
func (m *Manager) GetProductCommentsByUserId( userId int, query types.ProductCommentSearchQuery, ) ([]types.ProductComment, error)
func (*Manager) GetProductCommentsCountByProductId ¶
func (*Manager) GetProductCommentsCountByUserId ¶
func (*Manager) GetProductCommentsWithUserByProductId ¶
func (m *Manager) GetProductCommentsWithUserByProductId( productId int, query types.ProductCommentSearchQuery, ) ([]types.ProductCommentWithUser, error)
func (*Manager) GetProductExtendedById ¶
func (m *Manager) GetProductExtendedById(id int) (*types.ProductExtended, error)
func (*Manager) GetProductImageById ¶
func (m *Manager) GetProductImageById(id int) (*types.ProductImage, error)
func (*Manager) GetProductImages ¶
func (m *Manager) GetProductImages(productId int) ([]types.ProductImage, error)
func (*Manager) GetProductInventory ¶
func (*Manager) GetProductOfferById ¶
func (m *Manager) GetProductOfferById(id int) (*types.ProductOffer, error)
func (*Manager) GetProductOfferByProductId ¶
func (m *Manager) GetProductOfferByProductId(productId int) (*types.ProductOffer, error)
func (*Manager) GetProductOffers ¶
func (m *Manager) GetProductOffers( query types.ProductOfferSearchQuery, ) ([]types.ProductOffer, error)
func (*Manager) GetProductOffersCount ¶
func (m *Manager) GetProductOffersCount( query types.ProductOfferSearchQuery, ) (int, error)
func (*Manager) GetProductOwnerStore ¶
func (*Manager) GetProductSpecById ¶
func (m *Manager) GetProductSpecById(id int) (*types.ProductSpec, error)
func (*Manager) GetProductSpecs ¶
func (m *Manager) GetProductSpecs(productId int) ([]types.ProductSpec, error)
func (*Manager) GetProductTagById ¶
func (m *Manager) GetProductTagById(id int) (*types.ProductTag, error)
func (*Manager) GetProductTags ¶
func (m *Manager) GetProductTags( query types.ProductTagSearchQuery, ) ([]types.ProductTag, error)
func (*Manager) GetProductTagsCount ¶
func (m *Manager) GetProductTagsCount( query types.ProductTagSearchQuery, ) (int, error)
func (*Manager) GetProductVariantById ¶
func (m *Manager) GetProductVariantById(id int) (*types.ProductVariant, error)
func (*Manager) GetProductVariantWithAttributeSetById ¶
func (m *Manager) GetProductVariantWithAttributeSetById( id int, ) (*types.ProductVariantWithAttributeSet, error)
func (*Manager) GetProductVariants ¶
func (m *Manager) GetProductVariants(productId int) ([]types.ProductVariant, error)
func (*Manager) GetProductVariantsWithAttributeSet ¶
func (m *Manager) GetProductVariantsWithAttributeSet( productId int, ) ([]types.ProductVariantWithAttributeSet, error)
func (*Manager) GetProducts ¶
func (*Manager) GetProductsBase ¶
func (m *Manager) GetProductsBase(query types.ProductSearchQuery) ([]types.ProductBase, error)
func (*Manager) GetProductsCount ¶
func (m *Manager) GetProductsCount(query types.ProductSearchQuery) (int, error)
func (*Manager) GetRoleWithPermissionGroupsById ¶
func (m *Manager) GetRoleWithPermissionGroupsById(id int) (*types.RoleWithPermissionGroups, error)
func (*Manager) GetRoleWithPermissionGroupsByName ¶
func (m *Manager) GetRoleWithPermissionGroupsByName( name string, ) (*types.RoleWithPermissionGroups, error)
func (*Manager) GetRolesBasedOnActionPermission ¶
func (*Manager) GetRolesBasedOnResourcePermission ¶
func (*Manager) GetRolesWithPermissionGroups ¶
func (m *Manager) GetRolesWithPermissionGroups( query types.RolesSearchQuery, ) ([]types.RoleWithPermissionGroups, error)
func (*Manager) GetStoreAddressById ¶
func (m *Manager) GetStoreAddressById(id int) (*types.StoreAddress, error)
func (*Manager) GetStoreAddresses ¶
func (m *Manager) GetStoreAddresses( storeId int, query types.StoreAddressSearchQuery, ) ([]types.StoreAddress, error)
func (*Manager) GetStoreByName ¶
func (*Manager) GetStoreOwnedProducts ¶
func (m *Manager) GetStoreOwnedProducts( storeId int, ) ([]types.StoreOwnedProduct, error)
func (*Manager) GetStorePhoneNumberById ¶
func (m *Manager) GetStorePhoneNumberById(id int) (*types.StorePhoneNumber, error)
func (*Manager) GetStorePhoneNumbers ¶
func (m *Manager) GetStorePhoneNumbers( storeId int, query types.StorePhoneNumberSearchQuery, ) ([]types.StorePhoneNumber, error)
func (*Manager) GetStoreSettings ¶
func (m *Manager) GetStoreSettings(storeId int) (*types.StoreSettings, error)
func (*Manager) GetStoreWithSettingsById ¶
func (m *Manager) GetStoreWithSettingsById(id int) (*types.StoreWithSettings, error)
func (*Manager) GetStoresCount ¶
func (m *Manager) GetStoresCount(query types.StoreSearchQuery) (int, error)
func (*Manager) GetStoresWithSettings ¶
func (m *Manager) GetStoresWithSettings( query types.StoreSearchQuery, ) ([]types.StoreWithSettings, error)
func (*Manager) GetUserAddressById ¶
func (m *Manager) GetUserAddressById(id int) (*types.UserAddress, error)
func (*Manager) GetUserAddresses ¶
func (m *Manager) GetUserAddresses( userId int, query types.UserAddressSearchQuery, ) ([]types.UserAddress, error)
func (*Manager) GetUserByEmail ¶
func (*Manager) GetUserByUsername ¶
func (*Manager) GetUserByUsernameOrEmail ¶
func (*Manager) GetUserPhoneNumberById ¶
func (m *Manager) GetUserPhoneNumberById(id int) (*types.UserPhoneNumber, error)
func (*Manager) GetUserPhoneNumbers ¶
func (m *Manager) GetUserPhoneNumbers( userId int, query types.UserPhoneNumberSearchQuery, ) ([]types.UserPhoneNumber, error)
func (*Manager) GetUserSettings ¶
func (m *Manager) GetUserSettings(userId int) (*types.UserSettings, error)
func (*Manager) GetUserWithSettingsById ¶
func (m *Manager) GetUserWithSettingsById(id int) (*types.UserWithSettings, error)
func (*Manager) GetUserWithSettingsByUsername ¶
func (m *Manager) GetUserWithSettingsByUsername(username string) (*types.UserWithSettings, error)
func (*Manager) GetUsersCount ¶
func (m *Manager) GetUsersCount(query types.UserSearchQuery) (int, error)
func (*Manager) GetUsersWithSettings ¶
func (m *Manager) GetUsersWithSettings( query types.UserSearchQuery, ) ([]types.UserWithSettings, error)
func (*Manager) GetWalletTransactionById ¶
func (m *Manager) GetWalletTransactionById(id int) (*types.WalletTransaction, error)
func (*Manager) GetWalletTransactions ¶
func (m *Manager) GetWalletTransactions( query types.WalletTransactionSearchQuery, ) ([]types.WalletTransaction, error)
func (*Manager) GetWalletTransactionsCount ¶
func (m *Manager) GetWalletTransactionsCount( query types.WalletTransactionSearchQuery, ) (int, error)
func (*Manager) IsRoleHasAllActionPermissions ¶
func (*Manager) IsRoleHasAllResourcePermissions ¶
func (*Manager) IsRoleHasSomeActionPermissions ¶
func (*Manager) IsRoleHasSomeResourcePermissions ¶
func (*Manager) IsStoreHasParticipationInOrder ¶
func (*Manager) RemoveActionPermissionsFromGroup ¶
func (*Manager) RemovePermissionGroupsFromRole ¶
func (*Manager) RemoveResourcePermissionsFromGroup ¶
func (*Manager) UpdateOrderPayment ¶
func (m *Manager) UpdateOrderPayment( orderId int, p types.UpdateOrderPaymentPayload, ) error
func (*Manager) UpdateOrderShipment ¶
func (m *Manager) UpdateOrderShipment( orderId int, p types.UpdateOrderShipmentPayload, ) error
func (*Manager) UpdatePermissionGroup ¶
func (m *Manager) UpdatePermissionGroup(id int, p types.UpdatePermissionGroupPayload) error
func (*Manager) UpdateProduct ¶
func (m *Manager) UpdateProduct(id int, p types.UpdateProductPayload) error
func (*Manager) UpdateProductAttribute ¶
func (m *Manager) UpdateProductAttribute(id int, p types.UpdateProductAttributePayload) error
func (*Manager) UpdateProductBase ¶
func (m *Manager) UpdateProductBase(id int, p types.UpdateProductBasePayload) error
func (*Manager) UpdateProductCategory ¶
func (m *Manager) UpdateProductCategory(id int, p types.UpdateProductCategoryPayload) error
func (*Manager) UpdateProductComment ¶
func (m *Manager) UpdateProductComment( id int, p types.UpdateProductCommentPayload, ) error
func (*Manager) UpdateProductMainImage ¶
func (*Manager) UpdateProductOffer ¶
func (*Manager) UpdateProductSpec ¶
func (*Manager) UpdateProductTag ¶
func (m *Manager) UpdateProductTag(id int, p types.UpdateProductTagPayload) error
func (*Manager) UpdateProductVariant ¶
func (*Manager) UpdateRole ¶
func (m *Manager) UpdateRole(id int, p types.UpdateRolePayload) error
func (*Manager) UpdateStore ¶
func (m *Manager) UpdateStore(id int, p types.UpdateStorePayload) error
func (*Manager) UpdateStoreAddress ¶
func (*Manager) UpdateStorePhoneNumber ¶
func (*Manager) UpdateStoreSettings ¶
func (m *Manager) UpdateStoreSettings(storeId int, p types.UpdateStoreSettingsPayload) error
func (*Manager) UpdateUser ¶
func (m *Manager) UpdateUser(id int, p types.UpdateUserPayload) error
func (*Manager) UpdateUserAddress ¶
func (*Manager) UpdateUserPhoneNumber ¶
func (*Manager) UpdateUserSettings ¶
func (m *Manager) UpdateUserSettings(userId int, p types.UpdateUserSettingsPayload) error
func (*Manager) UpdateWallet ¶
func (m *Manager) UpdateWallet(id int, p types.UpdateWalletPayload) error
func (*Manager) UpdateWalletTransaction ¶
Click to show internal directories.
Click to hide internal directories.