36 lines
743 B
Go
36 lines
743 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
|
|
AdminFirstName string
|
|
AdminLastName string
|
|
AdminPhoneNumber string
|
|
WalletID int64
|
|
WalletBalance Currency
|
|
IsWalletActive bool
|
|
}
|
|
|
|
type CreateCompany struct {
|
|
Name string
|
|
AdminID int64
|
|
WalletID int64
|
|
}
|
|
|
|
type UpdateCompany struct {
|
|
ID int64
|
|
Name *string
|
|
AdminID *int64
|
|
}
|