33 lines
656 B
Go
33 lines
656 B
Go
package domain
|
|
|
|
// Company represents the client that we will contract the services with
|
|
// they are the ones that manage the branches and branch managers
|
|
// they will have their own wallet that they will use to distribute to the branch wallets
|
|
type Company struct {
|
|
ID int64
|
|
Name string
|
|
AdminID int64
|
|
WalletID int64
|
|
}
|
|
|
|
type GetCompany struct {
|
|
ID int64
|
|
Name string
|
|
AdminID int64
|
|
WalletID int64
|
|
WalletBalance Currency
|
|
IsWalletActive bool
|
|
}
|
|
|
|
type CreateCompany struct {
|
|
Name string
|
|
AdminID int64
|
|
WalletID int64
|
|
}
|
|
|
|
type UpdateCompany struct {
|
|
ID int64
|
|
Name *string
|
|
AdminID *int64
|
|
}
|