Documentation
¶
Index ¶
- func AddAdvertiseService(advertise model.Advertise) (err error)
- func AllAdvertiseService() (advertises []model.Advertise, err error)
- func DeleteAdvertiseService(id int64) (err error)
- func GetEfficientAdvertiseService() (advertises []model.Advertise, err error)
- type CaptchaCode
- type CaptchaCodeTable
- type CaptchaPending
- type CaptchaPendingTable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAdvertiseService ¶
AddAdvertiseService 新增广告
func AllAdvertiseService ¶
AllAdvertiseService 加载所有广告
func DeleteAdvertiseService ¶
DeleteAdvertiseService 删除一条广告
func GetEfficientAdvertiseService ¶
GetEfficientAdvertiseService 加载正在生效的广告
Types ¶
type CaptchaCode ¶
type CaptchaCode struct {
UserId int64 `json:"user_id"`
GroupId int64 `json:"group_id"`
Code string `json:"code"`
CaptchaMessage *tb.Message `json:"message_id"`
PendingMessage *tb.Message `json:"pending_message"`
GroupTitle string `json:"group_title"`
CreatedAt int64 `json:"created_at"`
}
CaptchaCode 验证码
type CaptchaCodeTable ¶
type CaptchaCodeTable struct {
UserCaptchaCode map[string]*CaptchaCode
sync.RWMutex
}
func NewCaptchaCodeTable ¶
func NewCaptchaCodeTable() *CaptchaCodeTable
func (*CaptchaCodeTable) Del ¶
func (t *CaptchaCodeTable) Del(key string)
func (*CaptchaCodeTable) Get ¶
func (t *CaptchaCodeTable) Get(key string) *CaptchaCode
func (*CaptchaCodeTable) Set ¶
func (t *CaptchaCodeTable) Set(key string, val *CaptchaCode)
type CaptchaPending ¶
type CaptchaPendingTable ¶
type CaptchaPendingTable struct {
UserCaptchaPending map[string]*CaptchaPending
sync.RWMutex
}
func NewCaptchaPendingTable ¶
func NewCaptchaPendingTable() *CaptchaPendingTable
func (*CaptchaPendingTable) Del ¶
func (t *CaptchaPendingTable) Del(key string)
func (*CaptchaPendingTable) Get ¶
func (t *CaptchaPendingTable) Get(key string) *CaptchaPending
func (*CaptchaPendingTable) Set ¶
func (t *CaptchaPendingTable) Set(key string, val *CaptchaPending)
Click to show internal directories.
Click to hide internal directories.