Documentation ¶
Index ¶
- type BlackIpDao
- func (d *BlackIpDao) CountAll() int64
- func (d *BlackIpDao) Create(data *models.Blackip) error
- func (d *BlackIpDao) Get(id int) *models.Blackip
- func (d *BlackIpDao) GetAll(page, size int) []models.Blackip
- func (d *BlackIpDao) GetByIp(ip string) *models.Blackip
- func (d *BlackIpDao) Search(ip string) []models.Blackip
- func (d *BlackIpDao) Update(data *models.Blackip, columns []string) error
- type CodeDao
- func (d *CodeDao) CountAll() int64
- func (d *CodeDao) CountByGift(giftId int) int64
- func (d *CodeDao) Create(data *models.Code) error
- func (d *CodeDao) Delete(id int) error
- func (d *CodeDao) Get(id int) *models.Code
- func (d *CodeDao) GetAll(page, size int) []models.Code
- func (d *CodeDao) NextUsingCode(giftId, codeId int) *models.Code
- func (d *CodeDao) Search(giftId int) []models.Code
- func (d *CodeDao) Update(data *models.Code, columns []string) error
- func (d *CodeDao) UpdateByCode(code *models.Code, columns []string) error
- type GiftDao
- func (d *GiftDao) CountAll() int64
- func (d *GiftDao) Create(data *models.Gift) error
- func (d *GiftDao) DecrLeftNum(id, num int) (int64, error)
- func (d *GiftDao) Delete(id int) error
- func (d *GiftDao) Get(id int) *models.Gift
- func (d *GiftDao) GetAll() []models.Gift
- func (d *GiftDao) GetAllUse() []models.Gift
- func (d *GiftDao) IncrLeftNum(id, num int) (int64, error)
- func (d *GiftDao) Update(data *models.Gift, columns []string) error
- type ResultDao
- func (d *ResultDao) CountAll() int64
- func (d *ResultDao) CountByGift(giftId int) int64
- func (d *ResultDao) CountByUser(uid int) int64
- func (d *ResultDao) Create(result *models.Result) error
- func (d *ResultDao) Delete(id int) error
- func (d *ResultDao) Get(id int) *models.Result
- func (d *ResultDao) GetAll(page, size int) []models.Result
- func (d *ResultDao) GetNewPrize(size int, giftIds []int) []models.Result
- func (d *ResultDao) SearchByGift(giftId, page, size int) []models.Result
- func (d *ResultDao) SearchByUser(uid, page, size int) []models.Result
- func (d *ResultDao) Update(data *models.Result, columns []string) error
- type UserDao
- type UserDayDao
- func (d *UserDayDao) Count(uid, day int) int
- func (d *UserDayDao) CountAll() int64
- func (d *UserDayDao) Create(data *models.Userday) error
- func (d *UserDayDao) Get(id int) *models.Userday
- func (d *UserDayDao) GetAll(page, size int) []models.Userday
- func (d *UserDayDao) Search(uid, day int) []models.Userday
- func (d *UserDayDao) Update(data *models.Userday, columns []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlackIpDao ¶
type BlackIpDao struct {
// contains filtered or unexported fields
}
func NewBlackIpDao ¶
func NewBlackIpDao(engine *xorm.Engine) *BlackIpDao
func (*BlackIpDao) CountAll ¶
func (d *BlackIpDao) CountAll() int64
type CodeDao ¶
type CodeDao struct {
// contains filtered or unexported fields
}
func NewCodeDao ¶
func (*CodeDao) CountByGift ¶
func (*CodeDao) NextUsingCode ¶
找到下一个可用的最小的优惠券
type GiftDao ¶
type GiftDao struct {
// contains filtered or unexported fields
}
func NewGiftDao ¶
type ResultDao ¶
type ResultDao struct {
// contains filtered or unexported fields
}
func NewResultDao ¶
func (*ResultDao) CountByGift ¶
func (*ResultDao) CountByUser ¶
func (*ResultDao) GetNewPrize ¶
func (*ResultDao) SearchByGift ¶
func (*ResultDao) SearchByUser ¶
type UserDayDao ¶
type UserDayDao struct {
// contains filtered or unexported fields
}
func NewUserDayDao ¶
func NewUserDayDao(engine *xorm.Engine) *UserDayDao
func (*UserDayDao) Count ¶
func (d *UserDayDao) Count(uid, day int) int
func (*UserDayDao) CountAll ¶
func (d *UserDayDao) CountAll() int64
Click to show internal directories.
Click to hide internal directories.