Documentation
¶
Index ¶
- func AddClass(class *TClass) (*serializers.ClassItem, error)
- func AddLog(log *TLog) error
- func AddPlatform(platform *TPlatform) (*serializers.PlatformItem, error)
- func AddRegister(register *TRegister) error
- func AddRegisterQueries(phoneNum int64) error
- func AddUser(user *TUser) (bool, error)
- func GetClassNameById(id int) (string, error)
- func GetRegisterCountByPhoneNum(phoneNum int64) (int64, error)
- func GetUserCountByOpenid(openid string) (int64, error)
- func InitDBConn()
- func UpdateRegisterByPhoneNum(phoneNum int64, updateMap map[string]interface{}) error
- func UpdateUserCreditByOpenid(openid string, value int) error
- func UpdateUserRewardedAtByOpenid(openid string, timestamp int64) error
- func UpdateUserRewardedCountByOpenid(openid string) error
- func UpdateUserRewardedInfoByOpenid(openid string, updateMap map[string]interface{}) error
- func UpdateUserSignedAtByOpenid(openid string, timestamp int64) error
- type Model
- type TClass
- type TLog
- type TPlatform
- type TRegister
- type TUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPlatform ¶
func AddPlatform(platform *TPlatform) (*serializers.PlatformItem, error)
func AddRegister ¶
func AddRegisterQueries ¶
func GetClassNameById ¶
func GetUserCountByOpenid ¶
func InitDBConn ¶
func InitDBConn()
Types ¶
type TClass ¶
func GetClassList ¶
func GetClassList(request *serializers.GetClassRequest) ([]*TClass, int64, error)
type TLog ¶
func GetLog ¶
func GetLog(request *serializers.GetLogRequest) ([]*TLog, error)
type TPlatform ¶
type TPlatform struct { ClassId int Name string Icon string Developer string Desc string Link string Tag string Model }
func GetPlatform ¶
func GetPlatform(request *serializers.GetPlatformRequest) ([]*TPlatform, int64, error)
func GetPlatformByName ¶
type TRegister ¶
func GetRegisterByPhoneNum ¶
Click to show internal directories.
Click to hide internal directories.