service

package
v0.0.0-...-cad625f Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Access

Access struct

func (*Access) List

List access

type Auth

Auth struct

func (*Auth) ChangePassword

func (u *Auth) ChangePassword(ctx context.Context, in *users.ChangePasswordRequest) (*users.Message, error)

ChangePassword service

func (*Auth) ForgotPassword

func (u *Auth) ForgotPassword(ctx context.Context, in *users.ForgotPasswordRequest) (*users.Message, error)

ForgotPassword service

func (*Auth) IsAuth

func (u *Auth) IsAuth(ctx context.Context, in *users.MyString) (*users.MyBoolean, error)

IsAuth service

func (*Auth) Login

func (u *Auth) Login(ctx context.Context, in *users.LoginRequest) (*users.LoginResponse, error)

Login service

func (*Auth) ResetPassword

func (u *Auth) ResetPassword(ctx context.Context, in *users.ResetPasswordRequest) (*users.Message, error)

ResetPassword service

type Branch

Branch struct

func (*Branch) Create

func (u *Branch) Create(ctx context.Context, in *users.Branch) (*users.Branch, error)

Create new branch

func (*Branch) Delete

func (u *Branch) Delete(ctx context.Context, in *users.Id) (*users.MyBoolean, error)

Delete branch

func (*Branch) List

List branches

func (*Branch) Update

func (u *Branch) Update(ctx context.Context, in *users.Branch) (*users.Branch, error)

Update branch

func (*Branch) View

func (u *Branch) View(ctx context.Context, in *users.Id) (*users.Branch, error)

View branch

type Brand

Brand struct

func (*Brand) Create

func (u *Brand) Create(ctx context.Context, in *inventories.Brand) (*inventories.Brand, error)

Create new Brand

func (*Brand) Delete

func (u *Brand) Delete(ctx context.Context, in *inventories.Id) (*inventories.MyBoolean, error)

Delete Brand

func (*Brand) List

List Brands

func (*Brand) Update

func (u *Brand) Update(ctx context.Context, in *inventories.Brand) (*inventories.Brand, error)

Update Brand

func (*Brand) View

func (u *Brand) View(ctx context.Context, in *inventories.Id) (*inventories.Brand, error)

View Brand

type Company

Company struct

func (*Company) Registration

Registration new company

func (*Company) Update

func (u *Company) Update(ctx context.Context, in *users.Company) (*users.Company, error)

Update Company

func (*Company) View

func (u *Company) View(ctx context.Context, in *users.Id) (*users.Company, error)

View Company

type Customer

Customer struct

func (*Customer) CustomerCreate

func (u *Customer) CustomerCreate(ctx context.Context, in *sales.Customer) (*sales.Customer, error)

Create new Customer

func (*Customer) CustomerList

List Customers

func (*Customer) CustomerUpdate

func (u *Customer) CustomerUpdate(ctx context.Context, in *sales.Customer) (*sales.Customer, error)

Update Customer

func (*Customer) CustomerView

func (u *Customer) CustomerView(ctx context.Context, in *sales.Id) (*sales.Customer, error)

View Customer

type Employee

Employee struct

func (*Employee) Create

func (u *Employee) Create(ctx context.Context, in *users.Employee) (*users.Employee, error)

Create Employee

func (*Employee) Delete

func (u *Employee) Delete(ctx context.Context, in *users.Id) (*users.MyBoolean, error)

Delete Employee

func (*Employee) List

List Employee

func (*Employee) Update

func (u *Employee) Update(ctx context.Context, in *users.Employee) (*users.Employee, error)

Update Employee

func (*Employee) View

func (u *Employee) View(ctx context.Context, in *users.Id) (*users.Employee, error)

View Employee

type Feature

Feature struct

func (*Feature) List

func (u *Feature) List(in *users.MyEmpty, streamServer users.FeatureService_ListServer) error

List feature

type Group

Group struct

func (*Group) Create

func (u *Group) Create(ctx context.Context, in *users.Group) (*users.Group, error)

Create Group

func (*Group) Delete

func (u *Group) Delete(ctx context.Context, in *users.Id) (*users.MyBoolean, error)

Delete Group

func (*Group) GrantAccess

func (u *Group) GrantAccess(ctx context.Context, in *users.GrantAccessRequest) (*users.Message, error)

GrantAccess Group

func (*Group) List

func (u *Group) List(in *users.ListGroupRequest, streamServer users.GroupService_ListServer) error

List Group

func (*Group) RevokeAccess

func (u *Group) RevokeAccess(ctx context.Context, in *users.GrantAccessRequest) (*users.Message, error)

RevokeAccess Group

func (*Group) Update

func (u *Group) Update(ctx context.Context, in *users.Group) (*users.Group, error)

Update Group

func (*Group) View

func (u *Group) View(ctx context.Context, in *users.Id) (*users.Group, error)

View Group

type PackageFeature

PackageFeature struct

func (*PackageFeature) List

List PackageFeature

func (*PackageFeature) View

View Package Feature

type Product

func (*Product) Create

Create new Product

func (*Product) Delete

func (u *Product) Delete(ctx context.Context, in *inventories.Id) (*inventories.MyBoolean, error)

Delete Product

func (*Product) List

List Products

func (*Product) Track

func (*Product) Update

Update Product

func (*Product) View

func (u *Product) View(ctx context.Context, in *inventories.Id) (*inventories.Product, error)

View Product

type ProductCategory

func (*ProductCategory) Create

func (*ProductCategory) Delete

func (*ProductCategory) Update

func (*ProductCategory) View

type Purchase

Purchase struct

func (*Purchase) PurchaseCreate

func (u *Purchase) PurchaseCreate(ctx context.Context, in *purchases.Purchase) (*purchases.Purchase, error)

Create new Purchase

func (*Purchase) PurchaseList

List Purchases

func (*Purchase) PurchaseUpdate

func (u *Purchase) PurchaseUpdate(ctx context.Context, in *purchases.Purchase) (*purchases.Purchase, error)

Update Purchase

func (*Purchase) PurchaseView

func (u *Purchase) PurchaseView(ctx context.Context, in *purchases.Id) (*purchases.Purchase, error)

View Purchase

type PurchaseReturn

PurchaseReturn struct

func (*PurchaseReturn) PurchaseReturnCreate

func (u *PurchaseReturn) PurchaseReturnCreate(ctx context.Context, in *purchases.PurchaseReturn) (*purchases.PurchaseReturn, error)

Create new PurchaseReturn

func (*PurchaseReturn) PurchaseReturnList

List PurchaseReturns

func (*PurchaseReturn) PurchaseReturnUpdate

func (u *PurchaseReturn) PurchaseReturnUpdate(ctx context.Context, in *purchases.PurchaseReturn) (*purchases.PurchaseReturn, error)

Update PurchaseReturn

func (*PurchaseReturn) PurchaseReturnView

func (u *PurchaseReturn) PurchaseReturnView(ctx context.Context, in *purchases.Id) (*purchases.PurchaseReturn, error)

View PurchaseReturn

type Receive

Receive struct

func (*Receive) Create

Create new Receive

func (*Receive) List

List Receives

func (*Receive) OutstandingByPurchase

func (u *Receive) OutstandingByPurchase(ctx context.Context, in *inventories.Id) (*inventories.OutstandingResponse, error)

func (*Receive) Update

Update Receive

func (*Receive) View

func (u *Receive) View(ctx context.Context, in *inventories.Id) (*inventories.Receive, error)

View Receive

type Region

Region struct

func (*Region) Create

func (u *Region) Create(ctx context.Context, in *users.Region) (*users.Region, error)

Create new region

func (*Region) Delete

func (u *Region) Delete(ctx context.Context, in *users.Id) (*users.MyBoolean, error)

Delete Region

func (*Region) List

List Region

func (*Region) Update

func (u *Region) Update(ctx context.Context, in *users.Region) (*users.Region, error)

Update region

func (*Region) View

func (u *Region) View(ctx context.Context, in *users.Id) (*users.Region, error)

View Region

type Salesman

Salesman struct

func (*Salesman) SalesmanCreate

func (u *Salesman) SalesmanCreate(ctx context.Context, in *sales.Salesman) (*sales.Salesman, error)

Create new Salesman

func (*Salesman) SalesmanList

List Salesmans

func (*Salesman) SalesmanUpdate

func (u *Salesman) SalesmanUpdate(ctx context.Context, in *sales.Salesman) (*sales.Salesman, error)

Update Salesman

func (*Salesman) SalesmanView

func (u *Salesman) SalesmanView(ctx context.Context, in *sales.Id) (*sales.Salesman, error)

View Salesman

type Shelve

func (*Shelve) Create

func (u *Shelve) Create(ctx context.Context, in *inventories.Shelve) (*inventories.Shelve, error)

Create new shelve

func (*Shelve) Delete

func (u *Shelve) Delete(ctx context.Context, in *inventories.Id) (*inventories.MyBoolean, error)

Delete shelve

func (*Shelve) List

List Shelves

func (*Shelve) Update

func (u *Shelve) Update(ctx context.Context, in *inventories.Shelve) (*inventories.Shelve, error)

Update shelve

func (*Shelve) View

func (u *Shelve) View(ctx context.Context, in *inventories.Id) (*inventories.Shelve, error)

View shelve

type Supplier

Supplier struct

func (*Supplier) SupplierCreate

func (u *Supplier) SupplierCreate(ctx context.Context, in *purchases.Supplier) (*purchases.Supplier, error)

Create new Supplier

func (*Supplier) SupplierList

List Suppliers

func (*Supplier) SupplierUpdate

func (u *Supplier) SupplierUpdate(ctx context.Context, in *purchases.Supplier) (*purchases.Supplier, error)

Update Supplier

func (*Supplier) SupplierView

func (u *Supplier) SupplierView(ctx context.Context, in *purchases.Id) (*purchases.Supplier, error)

View Supplier

type User

User struct

func (*User) Create

func (u *User) Create(ctx context.Context, in *users.User) (*users.User, error)

Create func

func (*User) Delete

func (u *User) Delete(ctx context.Context, in *users.Id) (*users.MyBoolean, error)

Delete func

func (*User) GetByToken

func (u *User) GetByToken(ctx context.Context, in *users.MyEmpty) (*users.User, error)

GetByToken func

func (*User) List

func (u *User) List(in *users.ListUserRequest, streamServer users.UserService_ListServer) error

List func

func (*User) Update

func (u *User) Update(ctx context.Context, in *users.User) (*users.User, error)

Update func

func (*User) View

func (u *User) View(ctx context.Context, in *users.Id) (*users.User, error)

View func

type Warehouse

func (*Warehouse) Create

Create new Warehouse

func (*Warehouse) Delete

Delete Warehouse

func (*Warehouse) List

List Warehouses

func (*Warehouse) Update

Update Warehouse

func (*Warehouse) View

View Warehouse

Jump to

Keyboard shortcuts

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