Documentation ¶
Index ¶
- type Dao
- func (d *Dao) ChangeVersionStatus(form *model.VersionForm) error
- func (d *Dao) CheckAndUpdateVersion(form *model.VersionForm) (*model.VersionForm, error)
- func (d *Dao) CheckCdkExist(cdkId int64, cdkContent string) (bool, error)
- func (d *Dao) CleanFrozenCdks(orderId int64) error
- func (d *Dao) ConvertVersionList(records *[]map[string]string) (*[]model.VersionForm, error)
- func (d *Dao) DeleteCdk(id int64, deleteTime int64) error
- func (d *Dao) DeleteCdkType(cdkId int64, deleteTime int64) error
- func (d *Dao) DeleteCdkTypes(cdkIds []int64) error
- func (d *Dao) DeleteCdks(ids []int64, deleteTime int64) error
- func (d *Dao) DeleteCdksByCdkIds(cdkIds []int64) error
- func (d *Dao) FrozenCdksStatus(ids []int64, userId string, orderId int64) error
- func (d *Dao) GetCdkType(cdkId int64) (*db.CdkType, error)
- func (d *Dao) GetCdkTypes(coinName string, page int64, size int64) ([]db.CdkType, int64, int64, error)
- func (d *Dao) GetCdkTypesWithCoinName(coinName string) ([]db.CdkType, error)
- func (d *Dao) GetCdks(cdkId int64, cdkContent string, page int64, size int64) ([]db.Cdk, int64, int64, error)
- func (d *Dao) GetCdksByOrderId(orderId int64) ([]db.Cdk, error)
- func (d *Dao) GetCdksCount(cdkId int64) (int64, int64, int64, error)
- func (d *Dao) GetCdksCountByUserIdAndCdkId(cdkId int64, userId string) (int64, error)
- func (d *Dao) GetCdksWithUserId(userId string, page int64, size int64) ([]db.Cdk, int64, int64, error)
- func (d *Dao) GetFrozenCdks() ([]db.Cdk, error)
- func (d *Dao) GetFrozenCdksCount(cdkId string) (int64, error)
- func (d *Dao) GetUnusedCdks(cdkId int64, number int64) ([]db.Cdk, error)
- func (d *Dao) GetUnusedCdksCount(cdkId string) (int64, error)
- func (d *Dao) GetUsedCdksCount(cdkId string) (int64, error)
- func (d *Dao) GetVersionList(form *model.VersionForm, page int64, size int64) (*[]model.VersionForm, int64, int64, error)
- func (d *Dao) InsertCdk(cdk *db.Cdk) error
- func (d *Dao) InsertCdkType(cdkType *db.CdkType) error
- func (d *Dao) InsertVersion(form *model.VersionForm) (int64, int64, error)
- func (d *Dao) ToCdkTypes(records []map[string]string) ([]db.CdkType, error)
- func (d *Dao) ToCdks(records []map[string]string) ([]db.Cdk, error)
- func (d *Dao) UpdateCdkOrderId(id int64, orderId int64) error
- func (d *Dao) UpdateCdkStatus(id int64, cdkStatus int32) error
- func (d *Dao) UpdateCdkType(cdkId int64, cdkName, coinName string, exchangeRate int64) error
- func (d *Dao) UpdateCdkUserId(id int64, userId int64) error
- func (d *Dao) UpdateCdksStatus(ids []int64, status int64) error
- func (d *Dao) UpdateVersion(form *model.VersionForm) (*model.VersionForm, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
func (*Dao) ChangeVersionStatus ¶
func (d *Dao) ChangeVersionStatus(form *model.VersionForm) error
func (*Dao) CheckAndUpdateVersion ¶
func (d *Dao) CheckAndUpdateVersion(form *model.VersionForm) (*model.VersionForm, error)
func (*Dao) CheckCdkExist ¶
func (*Dao) CleanFrozenCdks ¶
func (*Dao) ConvertVersionList ¶
func (*Dao) DeleteCdkTypes ¶
func (*Dao) DeleteCdksByCdkIds ¶
func (*Dao) FrozenCdksStatus ¶
func (*Dao) GetCdkTypes ¶
func (*Dao) GetCdkTypesWithCoinName ¶
func (*Dao) GetCdksCountByUserIdAndCdkId ¶
func (*Dao) GetCdksWithUserId ¶
func (*Dao) GetUnusedCdks ¶
func (*Dao) GetVersionList ¶
func (d *Dao) GetVersionList(form *model.VersionForm, page int64, size int64) (*[]model.VersionForm, int64, int64, error)
func (*Dao) InsertVersion ¶
func (*Dao) ToCdkTypes ¶
func (*Dao) UpdateCdkType ¶
func (*Dao) UpdateVersion ¶
func (d *Dao) UpdateVersion(form *model.VersionForm) (*model.VersionForm, error)
Click to show internal directories.
Click to hide internal directories.