Documentation ¶
Index ¶
- func CheckVehicleStatus(status string) bool
- type AccountRepository
- func (rep *AccountRepository) Create(data *bt.Account, input *it.InputCreateAccount) error
- func (rep *AccountRepository) Edit(data *bt.Account, input *it.InputEditAccount, token string) error
- func (rep *AccountRepository) Get(data *bt.Account, token string) error
- func (rep *AccountRepository) List(input *it.InputGetList) (*helpers.Pagination, error)
- type AddInvestmentRepository
- func (rep *AddInvestmentRepository) Create(input *it.InputAddInvestment, accountToken string, authUserID int64) (*bt.AddInvestment, error)
- func (rep *AddInvestmentRepository) Delete(uid string, accountToken string, authUserID int64) (*bt.AddInvestment, error)
- func (rep *AddInvestmentRepository) Edit(uid string, accountToken string, input *it.InputAddInvestment, ...) (*bt.AddInvestment, error)
- func (rep *AddInvestmentRepository) GetByUID(UID string, accountToken string) (*bt.AddInvestment, error)
- func (rep *AddInvestmentRepository) History(UID string, accountToken string, input *it.InputGetHistoryList) (*helpers.Pagination, error)
- func (rep *AddInvestmentRepository) List(accountToken string, input *it.InputGetListAddInvestment) (*helpers.Pagination, error)
- func (rep *AddInvestmentRepository) Search(accountToken string, input *it.AddInvestmentFilters) (*[]bt.AddInvestment, error)
- type FineRepository
- func (rep *FineRepository) ConvertFineFromSite(in *bt.FineFromSite) *bt.Fine
- func (rep *FineRepository) Create(accountToken string, input *bt.Fine, authUserID int64, ignorTG bool) (*bt.Fine, error)
- func (rep *FineRepository) Delete(accountToken string, uid string, authUserID int64) (*bt.Fine, error)
- func (rep *FineRepository) GetByID(accountToken string, ID int64) (*bt.Fine, error)
- func (rep *FineRepository) GetByNumber(accountToken string, number string) (*bt.Fine, error)
- func (rep *FineRepository) GetByUID(accountToken string, UID string) (*bt.Fine, error)
- func (rep *FineRepository) History(accountToken string, input *it.InputGetHistoryList, UID string) (*helpers.Pagination, error)
- func (rep *FineRepository) List(accountToken string, input *bt.InputGetListFines) (*helpers.Pagination, error)
- type ManagerRepository
- func (rep *ManagerRepository) Create(input *it.InputCreateManager, accountID int64, authUserID int64) (*bt.Manager, error)
- func (rep *ManagerRepository) Delete(uid string, accountToken string, authUserID int64) (*bt.Manager, error)
- func (rep *ManagerRepository) Edit(uid string, accountToken string, input *it.InputEditManager, authUserID int64) (*bt.Manager, error)
- func (rep *ManagerRepository) GetByUID(UID string, accountToken string) (*bt.Manager, error)
- func (rep *ManagerRepository) History(UID string, accountToken string, input *it.InputGetHistoryList) (*helpers.Pagination, error)
- func (rep *ManagerRepository) List(accountToken string, input *it.InputGetListManagers) (*helpers.Pagination, error)
- type OrderRepository
- func (rep *OrderRepository) List1(accountToken string, input *it.InputGetListOrders, withAccount bool) (*helpers.Pagination, error)
- func (rep *OrderRepository) List2(accountToken string, input *it.InputGetListOrders, withAccount bool) (*helpers.Pagination, error)
- func (rep *OrderRepository) PeriodSummary(accountToken string, input *it.InputGetPeriodSummary) (*bt.OrdersPeriodSummary, error)
- type PairOfStrings
- type RansomOrderRepository
- func (rep *RansomOrderRepository) Contribute(UID string, input *it.InputContributeIntoRansomOrder, accountToken string, ...) (*[]bt.MandatoryPayment, error)
- func (rep *RansomOrderRepository) Create(input *it.InputCreateRansomOrder, accountID int64, authUserID int64) (*bt.RansomOrder, error)
- func (rep *RansomOrderRepository) Delete(uid string, accountToken string, authUserID int64) (*bt.RansomOrder, error)
- func (rep *RansomOrderRepository) Edit(uid string, input *it.InputEditRansomOrder, accountToken string, ...) (*bt.RansomOrder, error)
- func (rep *RansomOrderRepository) GetByID(ID int64, accountToken string, withNestedData bool, withAuto bool) (*bt.RansomOrder, error)
- func (rep *RansomOrderRepository) GetByUID(UID string, accountToken string, withNestedData bool, withAuto bool) (*bt.RansomOrder, error)
- func (rep *RansomOrderRepository) History(UID string, accountToken string, input *it.InputGetHistoryList) (*helpers.Pagination, error)
- func (rep *RansomOrderRepository) List(accountToken string, input *it.InputGetListRansomOrders) (*helpers.Pagination, error)
- func (rep *RansomOrderRepository) Search(accountToken string, input *it.InputGetListRansomOrders) (*[]map[string]interface{}, error)
- type RansomTariffRepository
- func (rep *RansomTariffRepository) Create(input *it.InputCreateRansomTariff, accountID int64, authUserID int64) (*bt.RansomTariff, error)
- func (rep *RansomTariffRepository) Delete(uid string, accountToken string, authUserID int64) (*bt.RansomTariff, error)
- func (rep *RansomTariffRepository) Edit(uid string, input *it.InputEditRansomTariff, accountToken string, ...) (*bt.RansomTariff, error)
- func (rep *RansomTariffRepository) GetByUID(UID string, accountToken string, withInternalData bool) (*bt.RansomTariff, error)
- func (rep *RansomTariffRepository) History(UID string, accountToken string, input *it.InputGetHistoryList) (*helpers.Pagination, error)
- func (rep *RansomTariffRepository) List(accountToken string, input *it.InputGetRansomTariffList) (*helpers.Pagination, error)
- type ReminderRepository
- func (rep *ReminderRepository) Create(input *it.InputCreateReminder, accountID int64) (*bt.Reminder, error)
- func (rep *ReminderRepository) Delete(id int64, accountToken string) (*bt.Reminder, error)
- func (rep *ReminderRepository) Edit(id int64, accountToken string, input *it.InputEditReminder) (*bt.Reminder, error)
- func (rep *ReminderRepository) GetByID(ID int64, accountToken string) (*bt.Reminder, error)
- func (rep *ReminderRepository) List(accountToken string, input *it.InputGetListReminders) (*helpers.Pagination, error)
- type RentOrderRepository
- func (rep *RentOrderRepository) Create(input *it.InputCreateRentOrder, accountID int64, authUserID int64) (*bt.RentOrder, error)
- func (rep *RentOrderRepository) CreateMultiple(inputs *[]it.InputCreateRentOrder, accountID int64, authUserID int64) (*[]*bt.RentOrder, error)
- func (rep *RentOrderRepository) Delete(uid string, accountToken string, authUserID int64) (*bt.RentOrder, error)
- func (rep *RentOrderRepository) Edit(uid string, input *it.InputEditRentOrder, accountToken string, ...) (*bt.RentOrder, error)
- func (rep *RentOrderRepository) GetByID(ID int64, accountToken string, withNestedData bool, withAuto bool) (*bt.RentOrder, error)
- func (rep *RentOrderRepository) GetByUID(UID string, accountToken string, withNestedData bool, withAuto bool) (*bt.RentOrder, error)
- func (rep *RentOrderRepository) History(UID string, accountToken string, input *it.InputGetHistoryList) (*helpers.Pagination, error)
- func (rep *RentOrderRepository) List(accountToken string, input *it.InputGetListRentOrders) (*helpers.Pagination, error)
- func (rep *RentOrderRepository) Search(accountToken string, input *it.InputGetListRentOrders) (*[]map[string]interface{}, error)
- type RentTariffRepository
- func (rep *RentTariffRepository) Create(input *it.InputCreateRentTariff, accountID int64, authUserID int64) (*bt.RentTariff, error)
- func (rep *RentTariffRepository) Delete(uid string, accountToken string, authUserID int64) (*bt.RentTariff, error)
- func (rep *RentTariffRepository) Edit(uid string, input *it.InputEditRentTariff, accountToken string, ...) (*bt.RentTariff, error)
- func (rep *RentTariffRepository) GetByUID(UID string, accountToken string, withInternalData bool) (*bt.RentTariff, error)
- func (rep *RentTariffRepository) History(UID string, accountToken string, input *it.InputGetHistoryList) (*helpers.Pagination, error)
- func (rep *RentTariffRepository) List(accountToken string, input *it.InputGetRentTariffList) (*helpers.Pagination, error)
- type SysInfoRepository
- type UserRepository
- func (rep *UserRepository) Create(input *it.InputCreateUser, accountID int64, authUserID int64) (*bt.User, error)
- func (rep *UserRepository) Delete(uid string, accountToken string, authUserID int64) (*bt.User, error)
- func (rep *UserRepository) Edit(uid string, accountToken string, input *it.InputEditUser, authUserID int64) (*bt.User, error)
- func (rep *UserRepository) GetByPhone(accountToken string, phone string) (*bt.User, error)
- func (rep *UserRepository) GetByUID(UID string, accountToken string, withNestedData bool) (*bt.User, error)
- func (rep *UserRepository) History(UID string, accountToken string, input *it.InputGetHistoryList) (*helpers.Pagination, error)
- func (rep *UserRepository) List(accountToken string, input *it.InputGetListUsers) (*helpers.Pagination, error)
- func (rep *UserRepository) OrdersList(accountToken string, uid string) (*map[string]interface{}, error)
- type VehicleRepository
- func (rep *VehicleRepository) Create(input *it.InputCreateVehicle, accountID int64, authUserID int64) (*bt.Vehicle, error)
- func (rep *VehicleRepository) Delete(uid string, accountToken string, authUserID int64) (*bt.Vehicle, error)
- func (rep *VehicleRepository) Edit(uid string, accountToken string, input *it.InputEditVehicle, authUserID int64) (*bt.Vehicle, error)
- func (rep *VehicleRepository) GetByID(id int64, accountToken string, withNestedData bool) (*bt.Vehicle, error)
- func (rep *VehicleRepository) GetByIDs(input *it.InputGetByIDs, accountToken string) (*[]bt.Vehicle, error)
- func (rep *VehicleRepository) GetByNumber(number string, accountToken string, withNestedData bool) (*bt.Vehicle, error)
- func (rep *VehicleRepository) GetBySts(accountToken string, sts string, withNestedData bool) (*bt.Vehicle, error)
- func (rep *VehicleRepository) GetByUID(UID string, accountToken string, withNestedData bool) (*bt.Vehicle, error)
- func (rep *VehicleRepository) GetByUIDForAnalytics(UID string, accountToken string) (*bt.VehicleAnalytics, error)
- func (rep *VehicleRepository) History(UID string, accountToken string, input *it.InputGetHistoryList) (*helpers.Pagination, error)
- func (rep *VehicleRepository) List(accountToken string, input *it.InputGetListVehicles) (*helpers.Pagination, error)
- func (rep *VehicleRepository) OrdersList(accountToken string, uid string) (*map[string]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckVehicleStatus ¶
Types ¶
type AccountRepository ¶
func (*AccountRepository) Create ¶
func (rep *AccountRepository) Create(data *bt.Account, input *it.InputCreateAccount) error
func (*AccountRepository) Edit ¶
func (rep *AccountRepository) Edit(data *bt.Account, input *it.InputEditAccount, token string) error
func (*AccountRepository) Get ¶
func (rep *AccountRepository) Get(data *bt.Account, token string) error
func (*AccountRepository) List ¶
func (rep *AccountRepository) List(input *it.InputGetList) (*helpers.Pagination, error)
type AddInvestmentRepository ¶
func (*AddInvestmentRepository) Create ¶
func (rep *AddInvestmentRepository) Create(input *it.InputAddInvestment, accountToken string, authUserID int64) (*bt.AddInvestment, error)
func (*AddInvestmentRepository) Delete ¶
func (rep *AddInvestmentRepository) Delete(uid string, accountToken string, authUserID int64) (*bt.AddInvestment, error)
func (*AddInvestmentRepository) Edit ¶
func (rep *AddInvestmentRepository) Edit(uid string, accountToken string, input *it.InputAddInvestment, authUserID int64) (*bt.AddInvestment, error)
func (*AddInvestmentRepository) GetByUID ¶
func (rep *AddInvestmentRepository) GetByUID(UID string, accountToken string) (*bt.AddInvestment, error)
func (*AddInvestmentRepository) History ¶
func (rep *AddInvestmentRepository) History(UID string, accountToken string, input *it.InputGetHistoryList) (*helpers.Pagination, error)
func (*AddInvestmentRepository) List ¶
func (rep *AddInvestmentRepository) List(accountToken string, input *it.InputGetListAddInvestment) (*helpers.Pagination, error)
func (*AddInvestmentRepository) Search ¶
func (rep *AddInvestmentRepository) Search(accountToken string, input *it.AddInvestmentFilters) (*[]bt.AddInvestment, error)
type FineRepository ¶
func (*FineRepository) ConvertFineFromSite ¶
func (rep *FineRepository) ConvertFineFromSite(in *bt.FineFromSite) *bt.Fine
func (*FineRepository) GetByNumber ¶
func (*FineRepository) History ¶
func (rep *FineRepository) History(accountToken string, input *it.InputGetHistoryList, UID string) (*helpers.Pagination, error)
func (*FineRepository) List ¶
func (rep *FineRepository) List(accountToken string, input *bt.InputGetListFines) (*helpers.Pagination, error)
type ManagerRepository ¶
func (*ManagerRepository) Create ¶
func (rep *ManagerRepository) Create(input *it.InputCreateManager, accountID int64, authUserID int64) (*bt.Manager, error)
func (*ManagerRepository) Edit ¶
func (rep *ManagerRepository) Edit(uid string, accountToken string, input *it.InputEditManager, authUserID int64) (*bt.Manager, error)
func (*ManagerRepository) History ¶
func (rep *ManagerRepository) History(UID string, accountToken string, input *it.InputGetHistoryList) (*helpers.Pagination, error)
func (*ManagerRepository) List ¶
func (rep *ManagerRepository) List(accountToken string, input *it.InputGetListManagers) (*helpers.Pagination, error)
type OrderRepository ¶
func (*OrderRepository) List1 ¶
func (rep *OrderRepository) List1(accountToken string, input *it.InputGetListOrders, withAccount bool) (*helpers.Pagination, error)
func (*OrderRepository) List2 ¶
func (rep *OrderRepository) List2(accountToken string, input *it.InputGetListOrders, withAccount bool) (*helpers.Pagination, error)
func (*OrderRepository) PeriodSummary ¶
func (rep *OrderRepository) PeriodSummary(accountToken string, input *it.InputGetPeriodSummary) (*bt.OrdersPeriodSummary, error)
type PairOfStrings ¶
type PairOfStrings struct {
First, Second string
}
type RansomOrderRepository ¶
func (*RansomOrderRepository) Contribute ¶
func (rep *RansomOrderRepository) Contribute(UID string, input *it.InputContributeIntoRansomOrder, accountToken string, authUserID int64) (*[]bt.MandatoryPayment, error)
func (*RansomOrderRepository) Create ¶
func (rep *RansomOrderRepository) Create(input *it.InputCreateRansomOrder, accountID int64, authUserID int64) (*bt.RansomOrder, error)
func (*RansomOrderRepository) Delete ¶
func (rep *RansomOrderRepository) Delete(uid string, accountToken string, authUserID int64) (*bt.RansomOrder, error)
func (*RansomOrderRepository) Edit ¶
func (rep *RansomOrderRepository) Edit(uid string, input *it.InputEditRansomOrder, accountToken string, authUserID int64) (*bt.RansomOrder, error)
func (*RansomOrderRepository) GetByID ¶
func (rep *RansomOrderRepository) GetByID(ID int64, accountToken string, withNestedData bool, withAuto bool) (*bt.RansomOrder, error)
func (*RansomOrderRepository) GetByUID ¶
func (rep *RansomOrderRepository) GetByUID(UID string, accountToken string, withNestedData bool, withAuto bool) (*bt.RansomOrder, error)
func (*RansomOrderRepository) History ¶
func (rep *RansomOrderRepository) History(UID string, accountToken string, input *it.InputGetHistoryList) (*helpers.Pagination, error)
func (*RansomOrderRepository) List ¶
func (rep *RansomOrderRepository) List(accountToken string, input *it.InputGetListRansomOrders) (*helpers.Pagination, error)
func (*RansomOrderRepository) Search ¶
func (rep *RansomOrderRepository) Search(accountToken string, input *it.InputGetListRansomOrders) (*[]map[string]interface{}, error)
type RansomTariffRepository ¶
func (*RansomTariffRepository) Create ¶
func (rep *RansomTariffRepository) Create(input *it.InputCreateRansomTariff, accountID int64, authUserID int64) (*bt.RansomTariff, error)
func (*RansomTariffRepository) Delete ¶
func (rep *RansomTariffRepository) Delete(uid string, accountToken string, authUserID int64) (*bt.RansomTariff, error)
func (*RansomTariffRepository) Edit ¶
func (rep *RansomTariffRepository) Edit(uid string, input *it.InputEditRansomTariff, accountToken string, authUserID int64) (*bt.RansomTariff, error)
func (*RansomTariffRepository) GetByUID ¶
func (rep *RansomTariffRepository) GetByUID(UID string, accountToken string, withInternalData bool) (*bt.RansomTariff, error)
func (*RansomTariffRepository) History ¶
func (rep *RansomTariffRepository) History(UID string, accountToken string, input *it.InputGetHistoryList) (*helpers.Pagination, error)
func (*RansomTariffRepository) List ¶
func (rep *RansomTariffRepository) List(accountToken string, input *it.InputGetRansomTariffList) (*helpers.Pagination, error)
type ReminderRepository ¶
func (*ReminderRepository) Create ¶
func (rep *ReminderRepository) Create(input *it.InputCreateReminder, accountID int64) (*bt.Reminder, error)
func (*ReminderRepository) Edit ¶
func (rep *ReminderRepository) Edit(id int64, accountToken string, input *it.InputEditReminder) (*bt.Reminder, error)
func (*ReminderRepository) List ¶
func (rep *ReminderRepository) List(accountToken string, input *it.InputGetListReminders) (*helpers.Pagination, error)
type RentOrderRepository ¶
func (*RentOrderRepository) Create ¶
func (rep *RentOrderRepository) Create(input *it.InputCreateRentOrder, accountID int64, authUserID int64) (*bt.RentOrder, error)
func (*RentOrderRepository) CreateMultiple ¶
func (rep *RentOrderRepository) CreateMultiple(inputs *[]it.InputCreateRentOrder, accountID int64, authUserID int64) (*[]*bt.RentOrder, error)
func (*RentOrderRepository) Edit ¶
func (rep *RentOrderRepository) Edit(uid string, input *it.InputEditRentOrder, accountToken string, authUserID int64) (*bt.RentOrder, error)
func (*RentOrderRepository) History ¶
func (rep *RentOrderRepository) History(UID string, accountToken string, input *it.InputGetHistoryList) (*helpers.Pagination, error)
func (*RentOrderRepository) List ¶
func (rep *RentOrderRepository) List(accountToken string, input *it.InputGetListRentOrders) (*helpers.Pagination, error)
func (*RentOrderRepository) Search ¶
func (rep *RentOrderRepository) Search(accountToken string, input *it.InputGetListRentOrders) (*[]map[string]interface{}, error)
type RentTariffRepository ¶
func (*RentTariffRepository) Create ¶
func (rep *RentTariffRepository) Create(input *it.InputCreateRentTariff, accountID int64, authUserID int64) (*bt.RentTariff, error)
func (*RentTariffRepository) Delete ¶
func (rep *RentTariffRepository) Delete(uid string, accountToken string, authUserID int64) (*bt.RentTariff, error)
func (*RentTariffRepository) Edit ¶
func (rep *RentTariffRepository) Edit(uid string, input *it.InputEditRentTariff, accountToken string, authUserID int64) (*bt.RentTariff, error)
func (*RentTariffRepository) GetByUID ¶
func (rep *RentTariffRepository) GetByUID(UID string, accountToken string, withInternalData bool) (*bt.RentTariff, error)
func (*RentTariffRepository) History ¶
func (rep *RentTariffRepository) History(UID string, accountToken string, input *it.InputGetHistoryList) (*helpers.Pagination, error)
func (*RentTariffRepository) List ¶
func (rep *RentTariffRepository) List(accountToken string, input *it.InputGetRentTariffList) (*helpers.Pagination, error)
type SysInfoRepository ¶
func (*SysInfoRepository) GetInfoByDate ¶
func (rep *SysInfoRepository) GetInfoByDate(accountToken string, accountID int64, input *it.InputGetSysInfoByDate) (*bt.SysInfoByDate, error)
func (*SysInfoRepository) GetTotalInfo ¶
func (rep *SysInfoRepository) GetTotalInfo(accountToken string) (*bt.FullSysInfo, error)
type UserRepository ¶
func (*UserRepository) Create ¶
func (rep *UserRepository) Create(input *it.InputCreateUser, accountID int64, authUserID int64) (*bt.User, error)
func (*UserRepository) Edit ¶
func (rep *UserRepository) Edit(uid string, accountToken string, input *it.InputEditUser, authUserID int64) (*bt.User, error)
func (*UserRepository) GetByPhone ¶
func (*UserRepository) History ¶
func (rep *UserRepository) History(UID string, accountToken string, input *it.InputGetHistoryList) (*helpers.Pagination, error)
func (*UserRepository) List ¶
func (rep *UserRepository) List(accountToken string, input *it.InputGetListUsers) (*helpers.Pagination, error)
func (*UserRepository) OrdersList ¶
func (rep *UserRepository) OrdersList(accountToken string, uid string) (*map[string]interface{}, error)
type VehicleRepository ¶
func (*VehicleRepository) Create ¶
func (rep *VehicleRepository) Create(input *it.InputCreateVehicle, accountID int64, authUserID int64) (*bt.Vehicle, error)
func (*VehicleRepository) Edit ¶
func (rep *VehicleRepository) Edit(uid string, accountToken string, input *it.InputEditVehicle, authUserID int64) (*bt.Vehicle, error)
func (*VehicleRepository) GetByIDs ¶
func (rep *VehicleRepository) GetByIDs(input *it.InputGetByIDs, accountToken string) (*[]bt.Vehicle, error)
func (*VehicleRepository) GetByNumber ¶
func (*VehicleRepository) GetByUIDForAnalytics ¶
func (rep *VehicleRepository) GetByUIDForAnalytics(UID string, accountToken string) (*bt.VehicleAnalytics, error)
func (*VehicleRepository) History ¶
func (rep *VehicleRepository) History(UID string, accountToken string, input *it.InputGetHistoryList) (*helpers.Pagination, error)
func (*VehicleRepository) List ¶
func (rep *VehicleRepository) List(accountToken string, input *it.InputGetListVehicles) (*helpers.Pagination, error)
func (*VehicleRepository) OrdersList ¶
func (rep *VehicleRepository) OrdersList(accountToken string, uid string) (*map[string]interface{}, error)
Click to show internal directories.
Click to hide internal directories.