Documentation ¶
Index ¶
- func GetTotalTaxCount(dbConnPgx utils.PgxIface) (*int, error)
- func InsertTax(dbConnPgx utils.PgxIface, tax *Tax) (int, error)
- func InsertTaxes(dbConnPgx utils.PgxIface, taxes []Tax) error
- func RemoveTax(dbConnPgx utils.PgxIface, taxID *int) error
- func UpdateTax(dbConnPgx utils.PgxIface, tax *Tax) error
- type Tax
- func GetTax(dbConnPgx utils.PgxIface, taxID *int) (*Tax, error)
- func GetTaxListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, ...) ([]Tax, error)
- func GetTaxes(dbConnPgx utils.PgxIface, ids []int) ([]Tax, error)
- func GetTaxesByAssetID(dbConnPgx utils.PgxIface, assetID *int) ([]Tax, error)
- func GetTaxesByUUIDs(dbConnPgx utils.PgxIface, UUIDList []string) ([]Tax, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Tax ¶
type Tax struct { ID *int `json:"id" db:"id"` //1 UUID string `json:"uuid" db:"uuid"` //2 Name string `json:"name" db:"name"` //3 AlternateName string `json:"alternateName" db:"alternate_name"` //4 StartDate time.Time `json:"startDate" db:"start_date"` //5 EndDate time.Time `json:"endDate" db:"end_date"` //6 StartBlock *int `json:"startBlock" db:"start_block"` //7 EndBlock *int `json:"endBlock" db:"end_block"` //8 TaxRate *decimal.Decimal `json:"taxRate" db:"tax_rate"` //9 TaxRateTypeID *int `json:"taxRateTypeId" db:"tax_rate_type_id"` //10 ContractAddressStr string `json:"contractAddressStr" db:"contract_address_str"` //11 ContractAddressID *int `json:"contractAddressId" db:"contract_address_id"` //12 TaxTypeID *int `json:"taxTypeId" db:"tax_type_id"` //13 Description string `json:"description" db:"description"` //14 CreatedBy string `json:"createdBy" db:"created_by"` //15 CreatedAt time.Time `json:"createdAt" db:"created_at"` //16 UpdatedBy string `json:"updatedBy" db:"updated_by"` //17 UpdatedAt time.Time `json:"updatedAt" db:"updated_at"` //18 }
Tax
func GetTaxListByPagination ¶
func GetTaxesByAssetID ¶
Click to show internal directories.
Click to hide internal directories.