Documentation ¶
Overview ¶
@Title @Description @Author Wangwengang 2021/6/16 下午6:29 @Update Wangwengang 2021/6/16 下午6:29
@Title @Description @Author Wangwengang 2021/6/5 下午4:15 @Update Wangwengang 2021/6/5 下午4:15
@Title @Description @Author Wangwengang 2021/6/5 下午4:22 @Update Wangwengang 2021/6/5 下午4:22
自动生成模板Bind
@Title @Description @Author Wangwengang 2021/6/13 下午7:20 @Update Wangwengang 2021/6/13 下午7:20
自动生成模板GiftInfo
自动生成模板GiftOrder
@Title @Description @Author Wangwengang 2021/6/5 下午2:28 @Update Wangwengang 2021/6/5 下午2:28
@Title @Description @Author Wangwengang 2021/6/10 下午3:27 @Update Wangwengang 2021/6/10 下午3:27
自动生成模板Guild
@Title @Description @Author Wangwengang 2021/6/11 下午1:21 @Update Wangwengang 2021/6/11 下午1:21
@Title @Description @Author Wangwengang 2021/6/16 下午7:57 @Update Wangwengang 2021/6/16 下午7:57
@Title @Description @Author Wangwengang 2021/6/7 下午2:23 @Update Wangwengang 2021/6/7 下午2:23
@Title @Description @Author Wangwengang 2021/6/17 上午10:47 @Update Wangwengang 2021/6/17 上午10:47
@Title @Description @Author Wangwengang 2021/6/17 上午10:49 @Update Wangwengang 2021/6/17 上午10:49
自动生成模板Room
@Title @Description @Author Wangwengang 2021/6/5 下午2:28 @Update Wangwengang 2021/6/5 下午2:28
Package model @Title @Description @Author Wangwengang 2021/6/5 下午4:14 @Update Wangwengang 2021/6/5 下午4:14
@Title @Description @Author Wangwengang 2021/6/18 下午3:26 @Update Wangwengang 2021/6/18 下午3:26
自动生成模板UserStar
自动生成模板ValidAnchorLog
Index ¶
- Constants
- Variables
- func CreateAccountBanLog(banLog *AccountBanLog) error
- func CreateAnchorBanLog(banLog *AnchorBanLog) error
- func CreateAnchorIncomeLog(anchorIncomeLog AnchorIncomeLog) (err error, todayLuckyIncome int64, todayGoldIncome int64)
- func CreateAnchorLvCfg(lvCfg *AnchorLvCfg) error
- func CreateAppVer(version *AppVersion) error
- func CreateBind(bind Bind) (err error)
- func CreateBindLog(bindLog BindLog) (err error)
- func CreateCashWithdrawAccount(cashAccount *CashWithdrawAccount) error
- func CreateCashWithdrawDetail(model CashWithdrawDetail) (err error)
- func CreateCashWithdrawGoldenAccount(temp *CashWithdrawGoldenAccount) error
- func CreateCashWithdrawGoldenDetail(temp *CashWithdrawGoldenDetail) error
- func CreateDiamondLog(log DiamondLog) (err error)
- func CreateGiftInfo(giftInfo *GiftInfo) error
- func CreateGiftOrder(giftOrder GiftOrder) (err error)
- func CreateGoldLog(goldLog GoldLog) (err error)
- func CreateGuild(guild *Guild) (err error)
- func CreateGuildAudit(guildAudit GuildAudit) (err error)
- func CreateGuildIncomeLog(guildIncomeLog GuildIncomeLog) (err error)
- func CreateGuildLvCfg(lvCfg *GuildLvCfg) error
- func CreateLikesDiamondLog(log *LikesDiamondLog) (err error)
- func CreateLikesLvCfg(lvCfg *LikesLvCfg) error
- func CreateLikesTimesCfg(t *LikesTimesCfg) error
- func CreateLiveEndLog(roomId int64, mark string) (error, int64, int64, int64)
- func CreateLiveLog(liveLog LiveLog) (err error)
- func CreateLiveStartLog(roomId int64, isSecret bool) error
- func CreateLuckyGiftRate(luckyGiftRate LuckyGiftRate) (err error)
- func CreateLuckyGiftRateDetail(luckyGiftRateDetail LuckyGiftRateDetail) (err error)
- func CreateOrderApple(order *OrderApple) error
- func CreateOrderDeposit(order OrderDeposit) (err error)
- func CreateQiNiuLog(temp *QiNiuLog) error
- func CreateRoom(room Room) (err error)
- func CreateTransactionAli(model TransactionAli) (err error)
- func CreateUser(user User) (err error)
- func CreateUserLvCfg(lvCfg *UserLvCfg) error
- func CreateUserRoom(userRoom UserRoom) (err error)
- func CreateUserStar(userStar *UserStar) (err error)
- func CreateValidAnchorLog(validAnchorLog ValidAnchorLog) (err error)
- func CreateWaitUpdatePic(temp *WaitUpdatePic) error
- func CreateWithdrawAccount(account CashWithdrawAccount) (err error)
- func DeductDiamond(info pb.DeductDiamondArgs, userWallet *UserWalletInfo) error
- func DeductGold(info pb.DeductGoldArgs, userWallet *UserWalletInfo) error
- func DelAppVer(id int64) error
- func DeleteAnchorIncomeLog(anchorIncomeLog AnchorIncomeLog) (err error)
- func DeleteAnchorIncomeLogByIds(ids pb.IdsArgs) (err error)
- func DeleteBind(bind Bind) (err error)
- func DeleteBindByIds(ids pb.IdsArgs) (err error)
- func DeleteBindLog(bindLog BindLog) (err error)
- func DeleteBindLogByIds(ids pb.IdsArgs) (err error)
- func DeleteGiftInfo(id ...int64) error
- func DeleteGiftOrder(giftOrder GiftOrder) (err error)
- func DeleteGiftOrderByIds(ids pb.IdsArgs) (err error)
- func DeleteGoldLog(goldLog GoldLog) (err error)
- func DeleteGoldLogByIds(ids pb.IdsArgs) (err error)
- func DeleteGuild(guild Guild) (err error)
- func DeleteGuildAudit(guildAudit GuildAudit) (err error)
- func DeleteGuildAuditByIds(ids pb.IdsArgs) (err error)
- func DeleteGuildByIds(ids pb.IdsArgs) (err error)
- func DeleteGuildIncomeLog(guildIncomeLog GuildIncomeLog) (err error)
- func DeleteGuildIncomeLogByIds(ids pb.IdsArgs) (err error)
- func DeleteLiveLog(liveLog LiveLog) (err error)
- func DeleteLiveLogByIds(ids pb.IdsArgs) (err error)
- func DeleteLuckyGiftRate(luckyGiftRate LuckyGiftRate) (err error)
- func DeleteLuckyGiftRateDetail(luckyGiftRateDetail LuckyGiftRateDetail) (err error)
- func DeleteLuckyGiftRateDetailByIds(ids pb.IdsArgs) (err error)
- func DeleteRoom(room Room) (err error)
- func DeleteRoomByIds(ids pb.IdsArgs) (err error)
- func DeleteUser(user User) (err error)
- func DeleteUserByIds(ids pb.IdsArgs) (err error)
- func DeleteUserLvCfg(id ...int64) error
- func DeleteUserRoom(userRoom UserRoom) (err error)
- func DeleteUserRoomByIds(ids pb.IdsArgs) (err error)
- func DeleteUserStar(userId, userStarId int64) error
- func DeleteValidAnchorLog(validAnchorLog ValidAnchorLog) (err error)
- func DeleteValidAnchorLogByIds(ids pb.IdsArgs) (err error)
- func EditCharmUserStatus(userId int64, status int32) error
- func EditGuildAuditGuildImage(guildId int64, guildImage string) error
- func EditGuildImage(userId int64, guildImage string) error
- func EditHead(userId int64, head string) error
- func GetAnchorEightHourLiveTime(id int64, datetime string) (timeStamp int64)
- func GetGiftOrderInfoList(info pb.LobbySearchGiftOrderArgs) (err error, list interface{}, total int64)
- func GetLiveLogInfoList(info pb.LobbySearchLiveLogArgs) (err error, list interface{}, total int64)
- func GetModeInfoByMode(mode int64) string
- func GetMoneyFenByDiamondNum(diamondNum int64) int64
- func GetRomeStatusList(ids []int64) (map[int64]int32, error)
- func GetRoomHasPwd(userId int64) int32
- func GetRoomStatus(userId int64) int32
- func GetSearchEightHoursIncomeByAnchorId(userId int64, dataTime string) (total int64)
- func GetSearchEightHoursIncomeInfoList(info pb.RankSearchEightHoursRankArgs) (err error, list []*pb.AnchorIncomeLog2, total int64)
- func GetSuccessCashWithdrawOfTodayByUid(uid int64) (err error, total int64)
- func GetUserFansListIds(id int64, offset, limit int) ([]int64, int64, error)
- func GetUserFollow(userId int64, following, followers *int64) error
- func GetUserHead(userId int64) (string, error)
- func GetUserStarListIds(id int64, offset, limit int) ([]int64, int64, error)
- func GetUserStarListIdsNotPage(id int64) ([]int64, error)
- func GetUserStarOrFansIds(id int64, searchType int32, offset, limit int) ([]int64, int64, error)
- func InitRoomData() (err error, roomList []int64)
- func IsUserFollow(userId, userStarId int64) int64
- func TranAppVer(verStr string) int64
- func UpdateAnchorIncomeLog(anchorIncomeLog AnchorIncomeLog) (err error)
- func UpdateBind(bind Bind) (err error)
- func UpdateBindLog(bindLog BindLog) (err error)
- func UpdateBindLogBindAction(bindLog *BindLog) (err error)
- func UpdateDiamondsByUid(uid int64, diamondNum int64) (err error)
- func UpdateGiftOrder(giftOrder GiftOrder) (err error)
- func UpdateGoldLog(goldLog GoldLog) (err error)
- func UpdateGuild(guild Guild) (err error)
- func UpdateGuildAudit(guildAudit GuildAudit) (err error)
- func UpdateGuildAuditStatus(guildAudit *GuildAudit) (err error)
- func UpdateGuildIncomeLog(guildIncomeLog GuildIncomeLog) (err error)
- func UpdateLiveLog(liveLog LiveLog) (err error)
- func UpdateLuckyGiftRate(luckyGiftRate LuckyGiftRate) (err error)
- func UpdateLuckyGiftRateDetail(luckyGiftRateDetail LuckyGiftRateDetail) (err error)
- func UpdateOrderDeposit(order OrderDeposit) (err error)
- func UpdateOrderDepositByOutTradeNo(order OrderDeposit, outTradeNo string) (err error)
- func UpdateRoom(room Room) (err error)
- func UpdateRoomWatchNumber(roomId int64, watchNumber int64) (err error)
- func UpdateUser(user User) (err error)
- func UpdateUserRoom(userRoom UserRoom) (err error)
- func UpdateValidAnchorLog(validAnchorLog ValidAnchorLog) (err error)
- func UpdateWithdraw(cw CashWithdraw) (err error)
- func UpdateWithdrawAccountById(account CashWithdrawAccount, id uint) (err error)
- func UpdateWithdrawAccountByUid(account CashWithdrawAccount, uid uint) (err error)
- func UpgradeUserLvByMoney(moneyFenTotal int) (lv int, err error)
- func UserEdit(userId int64, mapValue map[string]interface{}) error
- type AccountBanLog
- type AnchorBanLog
- type AnchorIncomeLog
- type AnchorLvCfg
- type AppVersion
- type Banner
- type Bind
- type BindLog
- type CashWithdraw
- type CashWithdrawAccount
- func GetLastWithdrawAccountInfoByUid(uid uint) (err error, model CashWithdrawAccount)
- func GetUserNameStatusByUid(uid int64) (CashWithdrawAccount, error)
- func GetWithdrawAccountInfoById(id uint) (err error, model CashWithdrawAccount)
- func GetWithdrawAccountInfoByUid(uid uint) (err error, model CashWithdrawAccount)
- func GetWithdrawAccountList(info pb.WithdrawAccountSearchArgs) (err error, list []CashWithdrawAccount, total int64)
- type CashWithdrawAccountLog
- type CashWithdrawCfg
- type CashWithdrawDetail
- type CashWithdrawGoldenAccount
- type CashWithdrawGoldenDetail
- type CharmUser
- type DiamondLog
- type DiamondPrice
- type Flavor
- type GiftInfo
- type GiftInfoOldData
- type GiftOrder
- type Gold2diamond
- type GoldLog
- type Guild
- type GuildAudit
- func GetGuildAudit(id uint) (err error, guildAudit GuildAudit)
- func GetGuildAuditByGuildId(id int64) (err error, guildAudit GuildAudit)
- func GetGuildAuditByGuildIdAndAuditStatusAll(id int64) (err error, guildAudit GuildAudit)
- func GetGuildAuditInfoList(info pb.GuildSearchGuildAuditArgs) (err error, list []GuildAudit, total int64)
- type GuildIncomeLog
- type GuildLvCfg
- type LikesDiamondLog
- type LikesLvCfg
- type LikesTimesCfg
- type LiveLog
- type LuckyGiftRate
- type LuckyGiftRateDetail
- type OrderApple
- type OrderDeposit
- type Package
- type QiNiuLog
- type Room
- type TransactionAli
- type TransactionWx
- type UpgradeLvCfg
- type User
- func GetAdminLoginUser(loginName, pwd string) (User, error)
- func GetRefreshTokenUser(userId int64) (User, error)
- func GetUser(id int64) (err error, user User)
- func GetUserList(info pb.GetUserListArgs) ([]User, int64, error)
- func GetUserProfile(userId int64) (User, error)
- func UserSearch(info pb.UserSearchArgs) ([]User, int64, error)
- type UserLvCfg
- type UserRoom
- type UserStar
- type UserStar2
- type UserWalletInfo
- type ValidAnchorLog
- type WaitUpdatePic
- type WithdrawInfoResult
- type YF_MODEL
Constants ¶
const ( CashWithdrawStatusToCheck = 1 //待审核 CashWithdrawStatusPass = 2 //运营审核通过,待财务审核 CashWithdrawStatusPaying = 3 //打款中 CashWithdrawStatusFail = 4 //失败 CashWithdrawStatusPaid = 5 //打款完成 CashWithdrawModeGoldExchange = 5 //金币兑换 )
提现 审核状态:1.待审核 2.运营审核通过,待财务审核 3.打款中 4.失败 5.打款完成
const ( CashWithdrawAccountStatusToCheck = 0 //0未审核 CashWithdrawAccountStatusPass = 1 //通过审核 CashWithdrawAccountStatusChecking = 2 //审核中 CashWithdrawAccountStatusRejected = 3 //被驳回 )
0未审核[默认值],1通过审核,2审核中,3被驳回
const ( CashWithdrawDetailStatusToCheck = 1 //待审核 CashWithdrawDetailStatusPass = 2 //通过 CashWithdrawDetailStatusPaying = 3 //打款中 CashWithdrawDetailStatusFinished = 4 //已完成 CashWithdrawDetailStatusReject = 5 //未通过 CashWithdrawDetailStatusFail = 6 //提现失败 )
'审核状态:1.待审核 2.通过 3.打款中 4.已完成 5.未通过 6.提现失败'
const ( DiamondLogTypeDeposit = 1 // 加钻类型:1充值,2兑换,3送礼物 DiamondLogTypeExchange = 2 // DiamondLogTypeGift = 3 // )
const ( GoldLogTypeFromGift = 1 //1 礼物赠送金币变更 GoldLogTypeExchange = 2 //2 金币兑换钻石 GoldLogTypeBackend = 5 //5 后台添加 GoldLogTypeWithdrawFail = 6 //5 提现失败 GoldLogTypeWithdrawCreate = 22 //22 创建提现 )
const ( TransactionAliTradeTypeDeposit = 0 //交易类型:0 充值 TransactionAliTradeTypeWithdraw = 1 //交易类型:1 提现 )
const DepositOrderPayTypeAliPay = 1
支付方式:1-支付宝,2-微信
const DepositOrderPayTypeWxPay = 2
const DepositOrderStatusClosed = 9 //3-支付关闭
const DepositOrderStatusFail = -1 //0-支付失败
const DepositOrderStatusPaid = 3 //3-支付完成
const DepositOrderStatusTopay = 0 //0-待支付
const DiamondToMoneyFen = 100 //1w:1元
Variables ¶
var ModeInfoMap = map[int64]string{ CashWithdrawModeGoldExchange: "金币兑换", }
Functions ¶
func CreateAnchorIncomeLog ¶
func CreateAnchorIncomeLog(anchorIncomeLog AnchorIncomeLog) (err error, todayLuckyIncome int64, todayGoldIncome int64)
func CreateCashWithdrawAccount ¶
func CreateCashWithdrawAccount(cashAccount *CashWithdrawAccount) error
创建 实名认证 api 在用
func CreateCashWithdrawDetail ¶
func CreateCashWithdrawDetail(model CashWithdrawDetail) (err error)
func CreateCashWithdrawGoldenAccount ¶ added in v0.1.1
func CreateCashWithdrawGoldenAccount(temp *CashWithdrawGoldenAccount) error
func CreateCashWithdrawGoldenDetail ¶ added in v0.1.1
func CreateCashWithdrawGoldenDetail(temp *CashWithdrawGoldenDetail) error
func CreateDiamondLog ¶
func CreateDiamondLog(log DiamondLog) (err error)
func CreateGuildAudit ¶
func CreateGuildAudit(guildAudit GuildAudit) (err error)
func CreateGuildIncomeLog ¶
func CreateGuildIncomeLog(guildIncomeLog GuildIncomeLog) (err error)
func CreateLikesDiamondLog ¶ added in v0.0.5
func CreateLikesDiamondLog(log *LikesDiamondLog) (err error)
func CreateLikesTimesCfg ¶ added in v0.0.3
func CreateLikesTimesCfg(t *LikesTimesCfg) error
func CreateLiveEndLog ¶
func CreateLuckyGiftRate ¶
func CreateLuckyGiftRate(luckyGiftRate LuckyGiftRate) (err error)
func CreateLuckyGiftRateDetail ¶
func CreateLuckyGiftRateDetail(luckyGiftRateDetail LuckyGiftRateDetail) (err error)
func CreateOrderDeposit ¶
func CreateOrderDeposit(order OrderDeposit) (err error)
func CreateRoom ¶
@author: [piexlmax](https://github.com/piexlmax) @function: CreateRoom @description: 创建Room记录 @param: room Room @return: err error
func CreateTransactionAli ¶
func CreateTransactionAli(model TransactionAli) (err error)
func CreateValidAnchorLog ¶
func CreateValidAnchorLog(validAnchorLog ValidAnchorLog) (err error)
func CreateWaitUpdatePic ¶
func CreateWaitUpdatePic(temp *WaitUpdatePic) error
func DeductDiamond ¶
func DeductDiamond(info pb.DeductDiamondArgs, userWallet *UserWalletInfo) error
扣除钻石
func DeductGold ¶
func DeductGold(info pb.DeductGoldArgs, userWallet *UserWalletInfo) error
func DeleteAnchorIncomeLog ¶
func DeleteAnchorIncomeLog(anchorIncomeLog AnchorIncomeLog) (err error)
func DeleteGuildAudit ¶
func DeleteGuildAudit(guildAudit GuildAudit) (err error)
func DeleteGuildIncomeLog ¶
func DeleteGuildIncomeLog(guildIncomeLog GuildIncomeLog) (err error)
func DeleteLuckyGiftRate ¶
func DeleteLuckyGiftRate(luckyGiftRate LuckyGiftRate) (err error)
func DeleteLuckyGiftRateDetail ¶
func DeleteLuckyGiftRateDetail(luckyGiftRateDetail LuckyGiftRateDetail) (err error)
func DeleteLuckyGiftRateDetailByIds ¶
func DeleteUserLvCfg ¶
DeleteUserLvCfg 删除 和 批量删除 都能调用 根据表的主键ID
func DeleteValidAnchorLog ¶
func DeleteValidAnchorLog(validAnchorLog ValidAnchorLog) (err error)
func EditGuildAuditGuildImage ¶
guild_id audit_status = 0 guild_image
func GetAnchorEightHourLiveTime ¶
func GetGiftOrderInfoList ¶
func GetGiftOrderInfoList(info pb.LobbySearchGiftOrderArgs) (err error, list interface{}, total int64)
func GetLiveLogInfoList ¶
func GetLiveLogInfoList(info pb.LobbySearchLiveLogArgs) (err error, list interface{}, total int64)
func GetSearchEightHoursIncomeByAnchorId ¶
func GetSearchEightHoursIncomeInfoList ¶ added in v0.0.7
func GetSearchEightHoursIncomeInfoList(info pb.RankSearchEightHoursRankArgs) (err error, list []*pb.AnchorIncomeLog2, total int64)
func GetSuccessCashWithdrawOfTodayByUid ¶
获取用户今天的成功提现信息
func GetUserFansListIds ¶
粉丝列表 根据id 获取 关注被的用户
func GetUserFollow ¶
返回顺序 关注数量 粉丝数量 错误
func GetUserStarListIds ¶
@description: 根据id获取User关注的ids
func GetUserStarListIdsNotPage ¶
@description: 根据id获取User关注的ids
func GetUserStarOrFansIds ¶
外部强制校验 searchType
func UpdateAnchorIncomeLog ¶
func UpdateAnchorIncomeLog(anchorIncomeLog AnchorIncomeLog) (err error)
func UpdateDiamondsByUid ¶
根据uid更新用户钻石数
func UpdateGuildAudit ¶
func UpdateGuildAudit(guildAudit GuildAudit) (err error)
func UpdateGuildAuditStatus ¶
func UpdateGuildAuditStatus(guildAudit *GuildAudit) (err error)
func UpdateGuildIncomeLog ¶
func UpdateGuildIncomeLog(guildIncomeLog GuildIncomeLog) (err error)
func UpdateLuckyGiftRate ¶
func UpdateLuckyGiftRate(luckyGiftRate LuckyGiftRate) (err error)
func UpdateLuckyGiftRateDetail ¶
func UpdateLuckyGiftRateDetail(luckyGiftRateDetail LuckyGiftRateDetail) (err error)
func UpdateOrderDeposit ¶
func UpdateOrderDeposit(order OrderDeposit) (err error)
func UpdateOrderDepositByOutTradeNo ¶
func UpdateOrderDepositByOutTradeNo(order OrderDeposit, outTradeNo string) (err error)
根据out_trade_no更新充值订单
func UpdateRoomWatchNumber ¶
@function: updateRoomWatchNumber @description: 根据用户关注 分页获取Room记录 @param: info request.RoomSearch @return: err error, list interface{}, total int64
func UpdateValidAnchorLog ¶
func UpdateValidAnchorLog(validAnchorLog ValidAnchorLog) (err error)
func UpdateWithdraw ¶
func UpdateWithdraw(cw CashWithdraw) (err error)
func UpdateWithdrawAccountById ¶
func UpdateWithdrawAccountById(account CashWithdrawAccount, id uint) (err error)
func UpdateWithdrawAccountByUid ¶
func UpdateWithdrawAccountByUid(account CashWithdrawAccount, uid uint) (err error)
func UpgradeUserLvByMoney ¶
用户升级:根据充值数额
Types ¶
type AccountBanLog ¶
type AccountBanLog struct { ID int64 `gorm:"primaryKey"` // 主键Id UserID int64 `gorm:"column:user_id"` // 封禁用户Id Nick string `gorm:"column:nick"` // 用户昵称 BanDuration int64 `gorm:"column:ban_duration"` // 禁播时间长度 单位 秒 BanReasons string `gorm:"column:ban_reasons"` // 禁播理由 Operator string `gorm:"column:operator"` // 操作人 State int32 `gorm:"column:state"` // 状态 是否提前解封 StopBanAt time.Time `gorm:"column:stop_ban_at"` // 解封时间 CreatedAt time.Time `gorm:"column:created_at"` // 开始时间 UpdatedAt time.Time `gorm:"column:updated_at"` // 无用字段 提前解封 }
用户封禁日志
func (AccountBanLog) TableName ¶
func (AccountBanLog) TableName() string
type AnchorBanLog ¶
type AnchorBanLog struct { ID int64 `gorm:"primaryKey"` // 主键Id UserID int64 `gorm:"column:user_id;"` // 主播用户Id Nick string `gorm:"column:nick"` // 用户昵称 BanDuration int64 `gorm:"column:ban_duration;"` // 禁播时间长度 单位 秒 BanReasons string `gorm:"column:ban_reasons;"` // 禁播理由 Operator string `gorm:"column:operator"` // 操作人 State int32 `gorm:"column:state"` // 状态 是否提前解封 StopBanAt time.Time `gorm:"column:stop_ban_at;"` // 解封时间 CreatedAt time.Time `gorm:"column:created_at;"` // 开始时间 UpdatedAt time.Time `gorm:"column:updated_at;"` // 无用字段 提前解封 }
主播禁播日志
func (AnchorBanLog) TableName ¶
func (AnchorBanLog) TableName() string
type AnchorIncomeLog ¶
type AnchorIncomeLog struct { YF_MODEL AnchorID int64 `json:"anchorId" form:"anchorId" gorm:"column:anchor_id;comment:主播id;type:bigint;size:19;"` Anchor User `json:"anchor" form:"anchor"` RoomID int64 `json:"roomId" form:"roomId" gorm:"column:room_id;comment:房间id;type:bigint;size:19;"` UserID int64 `json:"userId" form:"userId" gorm:"column:user_id;comment:用户ID(赠送者);type:bigint;size:20;"` User User `json:"user" form:"user"` DayStart string `json:"dayStart" form:"dayStart" gorm:"column:day_start;comment:当日日期;type:varchar(20);size:20;"` DailyIncome int64 `json:"dailyIncome" form:"dailyIncome" gorm:"column:daily_income;comment:日收益;type:bigint;size:20;"` LuckyDailyIncome int64 `json:"luckyDailyIncome" form:"luckyDailyIncome" gorm:"column:lucky_daily_income;comment:幸运日收益;type:bigint;size:20;"` WeekStart string `json:"weekStart" form:"weekStart" gorm:"column:week_start;comment:;type:varchar(20);size:20;"` WeeklyIncome int64 `json:"weeklyIncome" form:"weeklyIncome" gorm:"column:weekly_income;comment:周收益;type:bigint;size:20;"` LuckyWeeklyIncome int64 `` /* 128-byte string literal not displayed */ MonthStart string `json:"monthStart" form:"monthStart" gorm:"column:month_start;comment:月开始日期;type:varchar(20);size:20;"` MonthlyIncome int64 `json:"monthlyIncome" form:"monthlyIncome" gorm:"column:monthly_income;comment:月收入;type:bigint;size:20;"` LuckyMonthlyIncome int64 `` /* 131-byte string literal not displayed */ TotalIncome int64 `json:"totalIncome" form:"totalIncome" gorm:"column:total_income;comment:累计收益;type:bigint;size:20;"` LuckyTotalIncome int64 `json:"totalIncome" form:"totalIncome" gorm:"column:total_income;comment:累计幸运礼物收益;type:bigint;size:20;"` Income int64 `json:"income" form:"income" gorm:"column:income;comment:本次收益;type:bigint;size:20;"` }
如果含有time.Time 请自行import time包
func GetAnchorIncomeLog ¶
func GetAnchorIncomeLog(id uint) (err error, anchorIncomeLog AnchorIncomeLog)
func (AnchorIncomeLog) TableName ¶
func (AnchorIncomeLog) TableName() string
type AnchorLvCfg ¶
type AnchorLvCfg struct { YF_MODEL Lv int32 `json:"lv" form:"lv" gorm:"column:lv;comment:主播等级;type:int;size:10;"` Exp int64 `json:"exp" form:"exp" gorm:"column:exp;comment:用户经验值;type:bigint;size:20;"` }
func (AnchorLvCfg) TableName ¶
func (AnchorLvCfg) TableName() string
type AppVersion ¶
type AppVersion struct { YF_MODEL PackageID int32 `gorm:"column:package_id;type:int(11);not null;default:1" json:"packageId"` // 产品名称id Package Package `json:"package"` // 关联 FlavorID int32 `gorm:"column:flavor_id;type:int(11);not null;default:0" json:"flavorId"` // 渠道id Flavor Flavor `json:"flavor"` // 关联 Platform string `gorm:"column:platform;type:varchar(50);not null;default:''" json:"platform"` // 平台 ios android Ver string `gorm:"column:ver;type:varchar(50);not null;default:''" json:"ver"` // 产品名 // a.b.c 计算公式 a * 65536 * 65536 * 65536 + b * 65536 * 65536 + c*65536 VerNumero int64 `gorm:"column:ver_numero;type:bigint(20);not null;default:0" json:"verNumero"` // 版本号(ver字段的int64表示) IsForce int32 `gorm:"column:is_force;type:tinyint(1);not null;default:0" json:"isForce"` // 是否强制更新 VerLst string `gorm:"column:ver_lst;type:varchar(100);not null;default:''" json:"verLst"` // 针对哪些版本更新,不填则针对全部 BundleID string `gorm:"column:bundle_id;type:varchar(50);not null;default:''" json:"bundleId"` // bundle Id AppleID string `gorm:"column:apple_id;type:varchar(50);not null;default:''" json:"appleId"` // 苹果Id Instructions string `gorm:"column:instructions;type:varchar(512);not null;default:''" json:"instructions"` // 更新内容 URL string `gorm:"column:url;type:varchar(200);not null;default:''" json:"url"` // 更新地址 Operator string `gorm:"column:operator;type:varchar(50);"` // 操作人 // 操作人 }
func GetAppVerList ¶
func GetAppVerList(info pb.SystemAppVerSearchArgs) ([]AppVersion, int64, error)
平太 和 渠道id
func (AppVersion) TableName ¶
func (AppVersion) TableName() string
type Banner ¶
type Banner struct { ID int32 `gorm:"primaryKey"` // Title string `gorm:"column:title;type:varchar(45);comment:标题;" json:"title"` // 标题 URL string `gorm:"column:url;type:varchar(200);comment:跳转地址类别 http链接" json:"url"` // 跳转地址类别 http链接 Img string `gorm:"column:img;type:varchar(200);comment:图片" json:"img"` // 图片名称 Sort int32 `gorm:"column:sort;type:tinyint(4);comment:显示序号;" json:"sort"` // 显示序号 Category int32 `gorm:"column:category;type:tinyint(4);comment:跳转类型1跳转web2跳转直播间3创建工会;" json:"category"` // 跳转类型 1 跳转web 2 跳转直播间 3 创建工会 BannerType int32 `gorm:"column:banner_type;type:tinyint(4);comment:板块类型1首页2直播间;" json:"bannerType"` // 板块类型(1 首页 2 直播间 BeginTime time.Time `gorm:"column:begin_time;type:datetime;comment:开始时间;" json:"beginTime"` // 开始时间 EndTime time.Time `gorm:"column:end_time;type:datetime;comment:结束时间;" json:"endTime"` // 结束时间 CreatedAt time.Time `gorm:"column:created_at;"` // UpdatedAt time.Time `gorm:"column:created_at;"` // DeletedAt gorm.DeletedAt `gorm:"index"` // }
type Bind ¶
type Bind struct { YF_MODEL GuildID int64 `json:"guildId" form:"guildId" gorm:"column:guild_id;comment:公会主键id;type:bigint;size:19;"` Guild Guild `json:"guild" form:"guild" gorm:"comment:公会详情"` AnchorID int64 `json:"anchorUid" form:"anchorUid" gorm:"column:anchor_uid;comment:绑定的主播用户id;type:bigint;size:19;"` Anchor User `json:"anchor" form:"anchor" gorm:"comment:主播详情"` LiveDuration int64 `` /* 128-byte string literal not displayed */ LiveIncome int64 `json:"liveIncome" form:"liveIncome" gorm:"column:live_income;comment:累计开播收益;type:bigint;size:19;"` Flag int32 `json:"flag" form:"flag" gorm:"column:flag;comment:是否优质主播:0:否,1:是;type:int;size:10;"` ValidDays int64 `json:"validDays" form:"validDays" gorm:"column:valid_days;comment:累计总有效时长;type:int;size:10;"` IsBlock int32 `json:"isBlock" form:"isBlock" gorm:"column:is_block;comment:是否封号;type:int;size:10;"` BlockReason string `json:"blockReason" form:"blockReason" gorm:"column:block_reason;comment:封号理由;type:varchar(255);size:255;"` BanToDate time.Time `json:"banToDate" form:"banToDate" gorm:"column:ban_to_date;comment:禁播日期;type:datetime;"` BanReason string `json:"banReason" form:"banReason" gorm:"column:ban_reason;comment:禁播理由;type:varchar(255);size:255;"` LastLivingDate time.Time `json:"lastLivingDate" form:"lastLivingDate" gorm:"column:last_living_date;comment:上次开播日期;type:datetime;"` LastLoginDate time.Time `json:"lastLoginDate" form:"lastLoginDate" gorm:"column:last_login_date;comment:上次登录日期;type:datetime;"` IsBan int32 `json:"isBan" form:"isBan" gorm:"column:is_ban;comment:是否禁播;type:int;size:10;"` GetScoreByGuild int64 `` /* 129-byte string literal not displayed */ LiveDurationPublic int64 `` /* 156-byte string literal not displayed */ LiveIncomePublic int64 `` /* 150-byte string literal not displayed */ OnCharm int32 `json:"onCharm" form:"onCharm" gorm:"column:on_charm;comment:是否在魅力榜;type:int;size:10"` }
如果含有time.Time 请自行import time包
type BindLog ¶
type BindLog struct { YF_MODEL GuildId int64 `json:"guildId" form:"guildId" gorm:"column:guild_id;comment:公会id;type:bigint;size:19;"` AnchorID int64 `json:"anchorUid" form:"anchorUid" gorm:"column:anchor_uid;comment:绑定的主播用户id;type:bigint;size:19;"` Anchor User `json:"anchor" form:"anchor" gorm:"comment:主播信息"` BindAction int32 `` /* 140-byte string literal not displayed */ Phone int64 `json:"phone" form:"phone" gorm:"column:phone;comment:手机号;type:int;size:13;"` WechatAccount string `json:"wechatAccount" form:"wechatAccount" gorm:"column:wechat_account;comment:微信号;type:varchar(18);size:18;"` }
如果含有time.Time 请自行import time包
func GetBindLogByUID ¶
type CashWithdraw ¶
type CashWithdraw struct { YF_MODEL Uid int64 `gorm:"column:uid"` // WithdrawType int32 `gorm:"column:withdraw_type"` // 类型 WithdrawAmount int64 `gorm:"column:withdraw_amount"` // Gold int64 `gorm:"column:gold"` // Status int64 `gorm:"column:status"` NetAmount int64 `gorm:"column:net_amount"` RequestId string `gorm:"column:request_id"` Code int64 `gorm:"column:code"` Message string `gorm:"column:message"` RiskLevel string `gorm:"column:risk_level"` Score int64 `gorm:"column:score"` Description string `gorm:"column:description"` DescriptionV2 string `gorm:"column:description_v2"` Model string `gorm:"column:model"` StatusDetail int64 `gorm:"column:status_detail"` FamilyId int64 `gorm:"column:family_id"` GoldBalance int64 `gorm:"column:gold_balance"` Mode int64 `gorm:"column:mode"` AccountNumber string `gorm:"column:account_number"` FullName string `gorm:"column:full_name"` OutTradeNo string `gorm:"column:out_trade_no"` User User `gorm:"foreignKey:uid"` }
func GetWithdrawInfoById ¶
func GetWithdrawInfoById(id uint) (err error, model CashWithdraw)
func GetWithdrawInfoByOutTradeNo ¶
func GetWithdrawInfoByOutTradeNo(outTradeNo string) (err error, model CashWithdraw)
func (CashWithdraw) TableName ¶
func (CashWithdraw) TableName() string
type CashWithdrawAccount ¶
type CashWithdrawAccount struct { YF_MODEL UId int64 `gorm:"column:uid;type:bigint(20);not null;default:0" json:"uid"` // 用户id AccountNumber string `gorm:"column:account_number;type:varchar(64);not null;default:''" json:"accountNumber"` // 账号 FullName string `gorm:"column:full_name;type:varchar(64);not null;default:''" json:"fullName"` // 姓名 Zone int `gorm:"column:zone;type:int(11);not null;default:86" json:"zone"` // 国家代码 Phone int64 `gorm:"column:phone;type:bigint(20);not null;default:0" json:"phone"` // 手机号 IDNumber string `gorm:"column:id_number;type:varchar(32);not null;default:''" json:"idNumber"` // 身份证号 AccountType int `gorm:"column:account_type;type:int(11);not null;default:1" json:"accountType"` // 账号类型 IDPhoto1 string `gorm:"column:id_photo1;type:varchar(128);not null;default:''" json:"idPhoto1"` // 身份证正面照片url IDPhoto2 string `gorm:"column:id_photo2;type:varchar(128);not null;default:''" json:"idPhoto2"` // 身份证反面照片url IDPhoto3 string `gorm:"column:id_photo3;type:varchar(128);not null;default:''" json:"idPhoto3"` // 手持身份证照片url State int32 `gorm:"column:state;type:int(11);not null;default:0" json:"state"` // 审核状态:0未审核[默认值],1通过审核,2审核中,3被驳回 Reason string `gorm:"column:reason;type:varchar(64);not null;default:''" json:"reason"` // 被驳回的原因 Operator string `gorm:"column:operator;type:varchar(64);not null;default:''" json:"operator"` // 操作人 RejectTime time.Time `gorm:"column:reject_time;type:datetime;not null;default:CURRENT_TIMESTAMP" json:"rejectTime"` // 拒绝时间 PassTime time.Time `gorm:"column:pass_time;type:datetime;not null;default:CURRENT_TIMESTAMP" json:"passTime"` // 通过时间 }
CashWithdrawAccount 提现账号
func GetLastWithdrawAccountInfoByUid ¶
func GetLastWithdrawAccountInfoByUid(uid uint) (err error, model CashWithdrawAccount)
获取最新WithdrawAccountInfo
func GetUserNameStatusByUid ¶
func GetUserNameStatusByUid(uid int64) (CashWithdrawAccount, error)
获取最近的实名认证 实名认证status接口要用
func GetWithdrawAccountInfoById ¶
func GetWithdrawAccountInfoById(id uint) (err error, model CashWithdrawAccount)
func GetWithdrawAccountInfoByUid ¶
func GetWithdrawAccountInfoByUid(uid uint) (err error, model CashWithdrawAccount)
获取提现账户信息
func GetWithdrawAccountList ¶
func GetWithdrawAccountList(info pb.WithdrawAccountSearchArgs) (err error, list []CashWithdrawAccount, total int64)
func (CashWithdrawAccount) TableName ¶
func (CashWithdrawAccount) TableName() string
get sql table name.获取数据库表名
type CashWithdrawAccountLog ¶
type CashWithdrawAccountLog struct { YF_MODEL Uid int64 `gorm:"column:uid" db:"column:uid" json:"uid" form:"uid"` AccountNumber string `gorm:"column:account_number" db:"column:account_number" json:"account_number" form:"account_number"` FullName string `gorm:"column:full_name" db:"column:full_name" json:"full_name" form:"full_name"` Zone int64 `gorm:"column:zone" db:"column:zone" json:"zone" form:"zone"` Phone int64 `gorm:"column:phone" db:"column:phone" json:"phone" form:"phone"` IdNumber string `gorm:"column:id_number" db:"column:id_number" json:"id_number" form:"id_number"` AccountType int64 `gorm:"column:account_type" db:"column:account_type" json:"account_type" form:"account_type"` }
func (CashWithdrawAccountLog) TableName ¶
func (CashWithdrawAccountLog) TableName() string
type CashWithdrawCfg ¶
type CashWithdrawCfg struct { YF_MODEL Gold int64 `gorm:"column:gold" db:"column:gold" json:"gold" form:"gold"` Cash int64 `gorm:"column:cash" db:"column:cash" json:"cash" form:"cash"` MaxCash int64 `gorm:"column:max_cash" db:"column:max_cash" json:"max_cash" form:"max_cash"` }
提现配置
func GetLastCashWithdrawCfg ¶
func GetLastCashWithdrawCfg() (err error, cfg CashWithdrawCfg)
获取最新提现配置
func (CashWithdrawCfg) TableName ¶
func (CashWithdrawCfg) TableName() string
type CashWithdrawDetail ¶
type CashWithdrawDetail struct { YF_MODEL CashWithdrawId int64 `gorm:"column:cash_withdraw_id" db:"column:cash_withdraw_id" json:"cash_withdraw_id" form:"cash_withdraw_id"` OperateTime time.Time `gorm:"column:operate_time" db:"column:operate_time" json:"operate_time" form:"operate_time"` OperateUser string `gorm:"column:operate_user" db:"column:operate_user" json:"operate_user" form:"operate_user"` Status int64 `gorm:"column:status" db:"column:status" json:"status" form:"status"` //'审核状态:1.待审核 2.通过 3.打款中 4.已完成 5.未通过 6.提现失败' Reason string `gorm:"column:reason" db:"column:reason" json:"reason" form:"reason"` RefundType int64 `gorm:"column:refund_type" db:"column:refund_type" json:"refund_type" form:"refund_type"` }
提现详情
func (CashWithdrawDetail) TableName ¶
func (CashWithdrawDetail) TableName() string
type CashWithdrawGoldenAccount ¶ added in v0.1.1
type CashWithdrawGoldenAccount struct { ID int64 `gorm:"primaryKey"` // 主键 没有用 FullName string `gorm:"column:full_name;type:varchar(64);not null;default:''"` // 姓名 Phone int64 `gorm:"column:phone;type:bigint(20);not null;default:0"` // 手机号 IDNumber string `gorm:"unique;column:id_number;type:varchar(32);not null;default:''"` // 身份证号 Msg string `gorm:"column:msg;type:varchar(64);not null;default:''"` // 原因 CreatedAt time.Time `gorm:"column:created_at"` // 创建时间 UpdatedAt time.Time `gorm:"column:updated_at"` // 修改时间 }
高灯 签约用户
func GetGoldenAccountByID ¶ added in v0.1.1
func GetGoldenAccountByID(IDNumber string) (*CashWithdrawGoldenAccount, error)
身份证 查人
func (CashWithdrawGoldenAccount) TableName ¶ added in v0.1.1
func (CashWithdrawGoldenAccount) TableName() string
type CashWithdrawGoldenDetail ¶ added in v0.1.1
type CashWithdrawGoldenDetail struct { ID int64 `gorm:"primaryKey"` // 主键 没有用 CashWithdrawID int64 `gorm:"column:cash_withdraw_id;type:bigint(20);not null" json:"cashWithdrawId"` // 提现表的主键(cash_withdraw) OrderRandomCode string `gorm:"column:order_random_code;type:varchar(128);not null" json:"orderRandomCode"` // 订单号 包含了 用户id 时间戳 OperateTime time.Time `gorm:"column:operate_time;type:datetime;not null" json:"operateTime"` // 操作时间 OperateUser string `gorm:"column:operate_user;type:varchar(64);not null" json:"operateUser"` // 操作人 Status int `gorm:"column:status;type:int(11);not null" json:"status"` // 审核状态 Reason string `gorm:"column:reason;type:varchar(128);not null" json:"reason"` // 操作备注 CreatedAt time.Time `gorm:"column:created_at"` // 创建时间 UpdatedAt time.Time `gorm:"column:updated_at"` // 修改时间 DeletedAt gorm.DeletedAt `gorm:"index" json:"-"` // }
高灯 提现 记录 备份
func (CashWithdrawGoldenDetail) TableName ¶ added in v0.1.1
func (CashWithdrawGoldenDetail) TableName() string
type CharmUser ¶
type CharmUser struct { YF_MODEL UserID int64 `gorm:"column:user_id;"` // 用户 Id Status int32 `gorm:"column:status;"` // 状态 1 2 }
魅力榜单 用户
type DiamondLog ¶
type DiamondLog struct { YF_MODEL Uid int64 `gorm:"column:uid"` Type int64 `gorm:"column:type"` Money int64 `gorm:"column:money"` IncrQty int64 `gorm:"column:incr_qty"` TotalQty int64 `gorm:"column:total_qty"` Comment string `gorm:"column:comment"` OrderId int64 `gorm:"column:order_id"` Operator string `gorm:"operator"` }
钻石流水
func GetDiamondLogList ¶
func GetDiamondLogList(info pb.DiamodLogSearchArgs) (err error, list []DiamondLog, total int64)
func (DiamondLog) TableName ¶
func (DiamondLog) TableName() string
type DiamondPrice ¶
type DiamondPrice struct { YF_MODEL DiamondNum int64 `gorm:"column:diamond_num" db:"column:diamond_num" json:"diamond_num" form:"diamond_num"` Money int64 `gorm:"column:money" db:"column:money" json:"money" form:"money"` }
钻石价格表
func GetDiamondPriceById ¶
func GetDiamondPriceById(id uint) (err error, model DiamondPrice)
获取钻石价格记录
func (DiamondPrice) TableName ¶
func (DiamondPrice) TableName() string
type Flavor ¶
type Flavor struct { YF_MODEL PkgID int `gorm:"column:pkg_id;type:int(11);not null;default:0" json:"pkgId"` // 包id FlavorFlag string `gorm:"column:flavor_flag;type:varchar(128);not null;default:''" json:"flavorFlag"` // 渠道商名称 FlavorName string `gorm:"column:flavor_name;type:varchar(128);not null;default:''" json:"flavorName"` // 渠道商名称 ApkURL string `gorm:"column:apk_url;type:varchar(128);not null;default:''" json:"apkUrl"` // 渠道包下载地址 FlavorDesc string `gorm:"column:flavor_desc;type:varchar(128);not null;default:''" json:"flavorDesc"` // 渠道商描述 }
type GiftInfo ¶
type GiftInfo struct { YF_MODEL GID int32 `json:"gid" gorm:"column:gid;type:smallint;size:6;comment:礼物ID;"` //礼物ID gid GiftType int32 `` // 1现金礼物2幸运礼物3热门礼物4奢侈礼物5彩蛋6彩蛋爆出的礼物 /* 160-byte string literal not displayed */ Gname string `json:"gname" form:"gname" gorm:"column:gname;comment:礼物名称;type:varchar(64);size:64;"` Icon string `json:"icon" form:"icon" gorm:"column:icon;comment:礼物图标;type:varchar(200);size:200;"` Price int32 `json:"price" form:"price" gorm:"column:price;comment:礼物价格;type:bigint(20);"` Duration int32 `json:"Duration" form:"Duration" gorm:"column:duration;comment:动效时长;type:int;size:10;"` SvgaUrl string `json:"SvgaUrl" form:"SvgaUrl" gorm:"column:svga_url;comment:动效地址;type:varchar(200);size:200;"` Exp int64 `json:"exp" form:"exp" gorm:"column:exp;comment:赠送获取经验值;type:bigint;size:19;"` AnchorExp int64 `` /* 136-byte string literal not displayed */ AnchorGetgold int64 `` /* 148-byte string literal not displayed */ GuildGetgold int64 `json:"guildGetgold" form:"guildGetgold" gorm:"column:guild_getgold;comment:公会长获取的金币值;type:bigint;size:19;"` Pos int32 `json:"pos" form:"pos" gorm:"column:pos;comment:位置顺序;type:int;size:10;"` Visible int32 `json:"visible" form:"visible" gorm:"column:visible;comment:是否可见;type:int;size:10;"` Remark string `json:"remark" form:"remark" gorm:"column:remark;comment:备注;type:varchar(200);size:200;"` IsBunch int32 `json:"isBunch" form:"isBunch" gorm:"column:is_bunch;comment:能否多个一起送 1能 2否; type:int;"` Bunch string `json:"bunch" form:"bunch" gorm:"column:bunch;comment:连击配置;type:varchar(128);size:128;"` Lv int32 `json:"lv" form:"lv" gorm:"column:lv;comment:财富等级(达到等级才能赠送);type:int;size:10;"` VisibleLv int32 `` /* 145-byte string literal not displayed */ CategoryId int32 `json:"categoryId" form:"categoryId" gorm:"column:category_id;comment:礼物种类;type:int;size:10;"` }
如果含有time.Time 请自行import time包
type GiftInfoOldData ¶
type GiftInfoOldData struct { Gid int32 `gorm:"primaryKey;column:gid;type:int(11) unsigned;not null" json:"gid"` // 礼物id GiftType int32 `gorm:"column:gift_type;type:int(11);not null;default:1" json:"giftType"` // 礼物类型:1现金礼物2幸运礼物3热门礼物4奢侈礼物5彩蛋6彩蛋爆出的礼物 Gname string `gorm:"column:gname;type:varchar(64);not null;default:''" json:"gname"` // 礼物名称 Icon string `gorm:"column:icon;type:varchar(200);not null;default:''" json:"icon"` // 礼物图标 Price int32 `gorm:"column:price;type:int(11);not null;default:0" json:"price"` // 礼物价格 Anieffecttimes int32 `gorm:"column:Anieffecttimes;type:int(11);not null" json:"anieffecttimes"` // 动效时长 Anieffectaddress string `gorm:"column:Anieffectaddress;type:varchar(200);not null;default:''" json:"anieffectaddress"` // 动效地址 Exp int64 `gorm:"column:exp;type:bigint(20);not null;default:0" json:"exp"` // 赠送获取经验值 AnchorExp int64 `gorm:"column:anchor_exp;type:bigint(20);not null;default:0" json:"anchorExp"` // 如果是送给主播,主播获取的经验值 AnchorGetgold int64 `gorm:"column:anchor_getgold;type:bigint(20);not null;default:0" json:"anchorGetgold"` // 如果是送给主播,主播获取的金币值 UserGetgold int64 `gorm:"column:user_getgold;type:bigint(20);not null;default:0" json:"userGetgold"` // 如果是送非主播用户,对方获取的金币值 AgentGetgold int64 `gorm:"column:agent_getgold;type:bigint(20);not null;default:0" json:"agentGetgold"` // 邀请者获取的金币值 SysGetgold int64 `gorm:"column:sys_getgold;type:bigint(20);not null;default:0" json:"sysGetgold"` // 系统收益 Pos int32 `gorm:"column:pos;type:int(11);not null;default:0" json:"pos"` // 位置顺序 Country int `gorm:"column:country;type:int(11);not null;default:86" json:"country"` // 国家 Showarea int `gorm:"column:showarea;type:int(11);not null;default:0" json:"showarea"` // 展示区域:0全网1国家 Visible int32 `gorm:"column:visible;type:int(11);not null;default:1" json:"visible"` // 是否可见 Remark string `gorm:"column:remark;type:varchar(200);not null;default:''" json:"remark"` // 备注 Updatetime time.Time `gorm:"column:updatetime;type:datetime;not null;default:CURRENT_TIMESTAMP" json:"updatetime"` // 修改时间 Createtime time.Time `gorm:"column:createtime;type:datetime;not null;default:CURRENT_TIMESTAMP" json:"createtime"` // 创建时间 LabelPic string `gorm:"column:label_pic;type:varchar(256);not null;default:''" json:"labelPic"` // 角标图片 EnableLabel int8 `gorm:"column:enable_label;type:tinyint(4);not null;default:0" json:"enableLabel"` // 是否使用角标 IsBunch []uint8 `gorm:"column:is_bunch;type:bit(1);not null;default:0" json:"isBunch"` // 能否多个一起送 IsProp []uint8 `gorm:"column:is_prop;type:bit(1);not null;default:0" json:"isProp"` // 是否是道具,道具客户端不能显示,但是需要传给客户端 PropPeriod int `gorm:"column:prop_period;type:int(11);not null;default:3" json:"propPeriod"` // 如果is_prop为true,这个值有效,表示这个道具中奖后几天内有效 Bunch string `gorm:"column:bunch;type:varchar(128);not null;default:''" json:"bunch"` // 连击配置 EffectID int `gorm:"column:effect_id;type:int(11);not null;default:0" json:"effectId"` // 对应APP端特效id,目前彩蛋使用此id来播放指定的动效 Vip int `gorm:"column:vip;type:int(11);not null;default:0" json:"vip"` // VIP等级,大于等于此等级的用户才能赠送此礼物 IsShowChatInfo []uint8 `gorm:"column:is_show_chat_info;type:bit(1);not null;default:0" json:"isShowChatInfo"` // 送礼物是否显示聊天信息 IsShowStrategyTips []uint8 `gorm:"column:is_show_strategy_tips;type:bit(1);not null;default:0" json:"isShowStrategyTips"` // 是否显示礼物攻略 Lv int32 `gorm:"column:lv;type:int(11);not null;default:0" json:"lv"` // 财富等级(达到等级才能赠送) VisibleLv int32 `gorm:"column:visible_lv;type:int(11);not null;default:0" json:"visibleLv"` // 财富等级达到这个字段指定的等级,才能显示 DiamondsBoard uint64 `gorm:"column:diamonds_board;type:bigint(20) unsigned;not null;default:0" json:"diamondsBoard"` // 本礼物钻石上榜数 CanGraffiti []uint8 `gorm:"column:can_graffiti;type:bit(1);not null;default:0" json:"canGraffiti"` // 是否可以涂鸦 Getdiamonds uint64 `gorm:"column:getdiamonds;type:bigint(20) unsigned;not null;default:0" json:"getdiamonds"` // 获得钻石数 CategoryID int32 `gorm:"column:category_id;type:int(11);not null;default:1" json:"categoryId"` // 礼物种类 GnameZh string `gorm:"column:gname_zh;type:varchar(64);not null;default:''" json:"gnameZh"` // 礼物名称 GnameAr string `gorm:"column:gname_ar;type:varchar(64);not null;default:''" json:"gnameAr"` // 礼物名称 GnameEn string `gorm:"column:gname_en;type:varchar(64);not null;default:''" json:"gnameEn"` // 礼物名称 }
func (*GiftInfoOldData) TableName ¶
func (*GiftInfoOldData) TableName() string
TableName get sql table name.获取数据库表名
type GiftOrder ¶
type GiftOrder struct { YF_MODEL SendUserID int64 `json:"sendUserId" form:"sendUserId" gorm:"column:send_user_id;comment:赠送用户id;type:bigint;size:20;"` SendUser User `json:"sendUser" form:"sendUser" gorm:"comment:用户详情"` AcceptUserID int64 `json:"acceptUserId" form:"acceptUserId" gorm:"column:accept_user_id;comment:接受礼物用户Id;type:bigint;size:20;"` AcceptUser User `json:"acceptUser" form:"acceptUser" gorm:"comment:主播详情"` GuildId int64 `json:"guildId" form:"guildId" gorm:"column:guild_id;comment:公会ID;type:bigint;size:20;"` Guild User `json:"guild" form:"guild" gorm:"comment:公会长详情"` GiftID int64 `json:"giftId" form:"giftId" gorm:"column:gift_id;comment:礼物ID;type:bigint;size:20;"` Gift GiftInfo `json:"gift" form:"gift"` Cnt int32 `json:"cnt" form:"cnt" gorm:"column:cnt;comment:赠送数量;type:int;size:11;"` GiftPrice int32 `json:"giftPrice" form:"giftPrice" gorm:"column:gift_price;comment:礼物单价;type:int;size:11;"` IsOver int32 `json:"isOver" form:"isOver" gorm:"column:is_over;comment:订单是否处理完成;type:int;size:10;"` }
如果含有time.Time 请自行import time包
func GetGiftOrderNoOverListByUserId ¶
type Gold2diamond ¶
type Gold2diamond struct { YF_MODEL DiamondNum int64 `gorm:"column:diamond_num" db:"column:diamond_num" json:"diamond_num" form:"diamond_num"` GoldNum int64 `gorm:"column:gold_num" db:"column:gold_num" json:"gold_num" form:"gold_num"` }
用金币兑换钻石
func GetGold2DiamondById ¶
func GetGold2DiamondById(id uint) (err error, model Gold2diamond)
获取金币->钻石 model
func (Gold2diamond) TableName ¶
func (Gold2diamond) TableName() string
type GoldLog ¶
type GoldLog struct { YF_MODEL GiftOrderID int64 `json:"giftOrderId" form:"giftOrderId" gorm:"column:gift_order_id;comment:送礼订单id;type:bigint;size:20;"` GiftOrder GiftOrder `json:"giftOrder" form:"giftOrder" gorm:"comment:礼物订单详情"` AgentUid int64 `json:"agentUid" form:"agentUid" gorm:"column:agent_uid;comment:代理(家族长)用户id;type:bigint;size:20;"` Type int32 `` /* 545-byte string literal not displayed */ Round int32 `` /* 135-byte string literal not displayed */ Goldchanges int64 `json:"goldchanges" form:"goldchanges" gorm:"column:goldchanges;comment:用户金币变化量;type:bigint;size:19;"` GoldNew int64 `json:"goldNew" form:"goldNew" gorm:"column:gold_new;comment:用户当前金币余额;type:bigint;size:19;"` Sexp int64 `json:"sexp" form:"sexp" gorm:"column:sexp;comment:用户送礼/收礼后经验值;type:bigint;size:19;"` Comment string `gorm:"column:comment" db:"column:comment" json:"comment" form:"comment"` //备注 Operator string `gorm:"column:operator"` }
如果含有time.Time 请自行import time包
type Guild ¶
type Guild struct { YF_MODEL UserId int64 `json:"userId" form:"userId" gorm:"column:user_id;comment:公会id(公会长用户id);type:bigint;size:19;"` GuildName string `json:"guildName" form:"guildName" gorm:"column:guild_name;comment:公会名称;type:varchar(32);size:32;"` GuildDeclaration string `` /* 128-byte string literal not displayed */ GuildImage string `json:"guildImage" form:"guildImage" gorm:"column:guild_image;comment:公会图片;type:varchar(128);size:128;"` //AuditStatus int32 `json:"auditStatus" form:"auditStatus" gorm:"column:audit_status;comment:审核状态:1通过审核;type:int;size:10;"` Lv int32 `json:"lv" form:"lv" gorm:"column:lv;comment:公会等级;type:int;size:10;"` Contact string `json:"contact" form:"contact" gorm:"column:contact;comment:对接人;type:varchar(32);size:32;"` TotalCash int64 `json:"totalCash" form:"totalCash" gorm:"column:total_cash;comment:提现总额;type:bigint;size:19;"` Gold int64 `json:"gold" form:"gold" gorm:"column:gold;comment:剩余积分;type:bigint;size:19;"` SettleStyle int32 `` /* 143-byte string literal not displayed */ City string `json:"city" form:"city" gorm:"column:city;comment:家族所在城市;type:varchar(32);size:32;"` NowLiveNumber int32 `json:"nowLiveNumber" form:"nowLiveNumber" gorm:"column:now_live_number;comment:公会开播人数;type:int;size:10"` }
如果含有time.Time 请自行import time包
type GuildAudit ¶
type GuildAudit struct { YF_MODEL GuildId int64 `json:"guildId" form:"guildId" gorm:"column:guild_id;comment:公会长用户id;type:bigint;size:19;"` GuildName string `json:"guildName" form:"guildName" gorm:"column:guild_name;comment:公会名称;type:varchar(32);size:32;"` GuildDeclaration string `` /* 128-byte string literal not displayed */ GuildImage string `json:"guildImage" form:"guildImage" gorm:"column:guild_image;comment:家族图片;type:varchar(128);size:128;"` Zone int32 `json:"zone" form:"zone" gorm:"column:zone;comment:国家代码;type:int;size:10;"` Phone int64 `json:"phone" form:"phone" gorm:"column:phone;comment:手机号码;type:bigint;size:19;"` WechatAccount string `json:"wechatAccount" form:"wechatAccount" gorm:"column:wechat_account;comment:微信账号;type:varchar(32);size:32;"` AnchorLimit int32 `json:"anchorLimit" form:"anchorLimit" gorm:"column:anchor_limit;comment:可以绑定的主播数量;type:int;size:10;"` IdPhoto1 string `json:"idPhoto1" form:"idPhoto1" gorm:"column:id_photo1;comment:身份证正面照片;type:varchar(128);size:128;"` IdPhoto2 string `json:"idPhoto2" form:"idPhoto2" gorm:"column:id_photo2;comment:身份证反面照片;type:varchar(128);size:128;"` IdPhoto3 string `json:"idPhoto3" form:"idPhoto3" gorm:"column:id_photo3;comment:手持身份证正面合影url;type:varchar(128);size:128;"` IdNum string `json:"idNum" form:"idNum" gorm:"column:id_num;comment:身份证号;type:varchar(20);size:20;"` RealName string `json:"realName" form:"realName" gorm:"column:real_name;comment:真实姓名;type:varchar(8);size:8;"` AuditStatus int32 `` /* 196-byte string literal not displayed */ RejectReason string `json:"rejectReason" form:"rejectReason" gorm:"column:reject_reason;comment:被驳回的原因;type:varchar(512);size:512;"` Email string `json:"email" form:"email" gorm:"column:email;comment:邮箱;type:varchar(32);size:32;"` Operator string `json:"operator" form:"operator" gorm:"column:operator;comment:操作人;type:varchar(32);size:32;"` }
如果含有time.Time 请自行import time包
func GetGuildAudit ¶
func GetGuildAudit(id uint) (err error, guildAudit GuildAudit)
func GetGuildAuditByGuildId ¶
func GetGuildAuditByGuildId(id int64) (err error, guildAudit GuildAudit)
func GetGuildAuditByGuildIdAndAuditStatusAll ¶
func GetGuildAuditByGuildIdAndAuditStatusAll(id int64) (err error, guildAudit GuildAudit)
func GetGuildAuditInfoList ¶
func GetGuildAuditInfoList(info pb.GuildSearchGuildAuditArgs) (err error, list []GuildAudit, total int64)
func (GuildAudit) TableName ¶
func (GuildAudit) TableName() string
type GuildIncomeLog ¶
type GuildIncomeLog struct { YF_MODEL GuildId int64 `json:"guildId" form:"guildId" gorm:"column:guild_id;comment:公会长Id;type:bigint;size:20;"` AnchorID int64 `json:"anchorId" form:"anchorId" gorm:"column:anchor_id;comment:主播id;type:bigint;size:19;"` Anchor User `json:"anchor" form:"anchor"` DayStart string `json:"dayStart" form:"dayStart" gorm:"column:day_start;comment:当日日期;type:varchar(20);size:20;"` DailyIncome int64 `json:"dailyIncome" form:"dailyIncome" gorm:"column:daily_income;comment:日收益;type:bigint;size:20;"` WeekStart string `json:"weekStart" form:"weekStart" gorm:"column:week_start;comment:;type:varchar(20);size:20;"` WeeklyIncome int64 `json:"weeklyIncome" form:"weeklyIncome" gorm:"column:weekly_income;comment:周收益;type:bigint;size:20;"` MonthStart string `json:"monthStart" form:"monthStart" gorm:"column:month_start;comment:月开始日期;type:varchar(20);size:20;"` MonthlyIncome int64 `json:"monthlyIncome" form:"monthlyIncome" gorm:"column:monthly_income;comment:月收入;type:bigint;size:20;"` TotalIncome int64 `json:"totalIncome" form:"totalIncome" gorm:"column:total_income;comment:累计公会收益;type:bigint;size:20;"` Income int64 `json:"income" form:"income" gorm:"column:income;comment:累计公会收益;type:bigint;size:20;"` }
如果含有time.Time 请自行import time包
func GetGuildIncomeLog ¶
func GetGuildIncomeLog(id uint) (err error, guildIncomeLog GuildIncomeLog)
func GetGuildIncomeLogInfoList ¶
func GetGuildIncomeLogInfoList(info pb.GuildIncomeLogSearchGuildIncomeLogArgs) (err error, list []GuildIncomeLog, total int64)
func (GuildIncomeLog) TableName ¶
func (GuildIncomeLog) TableName() string
type GuildLvCfg ¶
type GuildLvCfg struct { YF_MODEL Lv int32 `gorm:"primaryKey;column:lv;type:int(11);not null"` // 公会等级 ImageURL string `gorm:"column:image_url;type:varchar(255);not null"` // 公会等级图标 }
工会 等级
func (*GuildLvCfg) TableName ¶
func (m *GuildLvCfg) TableName() string
type LikesDiamondLog ¶ added in v0.0.5
type LikesDiamondLog struct { YF_MODEL Uid int64 `gorm:"column:uid"` // 用户id IncrQty int64 `gorm:"column:incr_qty"` // 钻石数量 RoomId int64 `gorm:"column:room_id"` // 主播房间 Comment string `gorm:"column:comment"` // 备注 几次抽奖,中了多少 }
func (LikesDiamondLog) TableName ¶ added in v0.0.5
func (LikesDiamondLog) TableName() string
type LikesLvCfg ¶ added in v0.0.5
type LikesLvCfg struct { ID int64 `gorm:"primaryKey"` Lv int32 `gorm:"column:lv;"` // 用户等级 Max int64 `gorm:"column:max;"` // 等级对应的 钻石最大数量 Tips string `gorm:"column:tips;"` // 提示语 CreatedAt time.Time UpdatedAt time.Time DeletedAt gorm.DeletedAt `gorm:"index"` }
func (LikesLvCfg) TableName ¶ added in v0.0.5
func (LikesLvCfg) TableName() string
type LikesTimesCfg ¶ added in v0.0.3
type LikesTimesCfg struct { ID int64 `gorm:"primaryKey"` // 主键 StartAt time.Time `gorm:"column:start_at;"` // 开始时间 00:00:00 EndAt time.Time `gorm:"column:end_at;"` // 结束时间 07:59:59 Total int64 `gorm:"column:total;type:bigint(20)"` // 总量 3000 0000 RateCfg string `gorm:"column:rate_cfg;type:varchar(191)"` // 比例配置 1000 为一组 一个奖池 1000 拉空了 再补充 CreatedAt time.Time `gorm:"column:created_at;"` // 开始时间 UpdatedAt time.Time `gorm:"column:updated_at;"` // 无用字段 DeletedAt gorm.DeletedAt `gorm:"index"` // 删除 }
func GetLikesTimesCfgList ¶ added in v0.0.3
func GetLikesTimesCfgList() ([]LikesTimesCfg, error)
func (LikesTimesCfg) TableName ¶ added in v0.0.3
func (LikesTimesCfg) TableName() string
type LiveLog ¶
type LiveLog struct { YF_MODEL RoomID int64 `json:"roomId" form:"roomId" gorm:"column:room_id;comment:房间Id;type:bigint;size:20;"` Room Room `json:"room" form:"room" gorm:"comment:房间详情"` UserID int64 `json:"userId" form:"userId" gorm:"column:user_id;comment:用户ID;type:bigint;size:20;"` User User `json:"user" form:"user" gorm:"comment:主播详情"` LiveTime int64 `json:"liveTime" form:"liveTime" gorm:"column:live_time;comment:直播时长;type:bigint;size:20;"` AllLiveTimeEnd int64 `` /* 138-byte string literal not displayed */ WeeklyLiveTimeEnd int64 `` /* 144-byte string literal not displayed */ MonthlyLiveTimeEnd int64 `` /* 147-byte string literal not displayed */ DailyLiveTimeEnd int64 `` /* 141-byte string literal not displayed */ Mark string `json:"mark" form:"mark" gorm:"column:mark;comment:备注;type:varchar(32);size:32;"` IsOver int32 `json:"isOver" form:"isOver" gorm:"column:is_over;comment:是否结束直播;type:smallint;size:4;"` IsSecret int32 `json:"isSecret" form:"isSecret" gorm:"column:is_secret;comment:是否私密直播;type:smallint;size:4"` }
如果含有time.Time 请自行import time包
type LuckyGiftRate ¶
type LuckyGiftRate struct { YF_MODEL GiftId int64 `json:"giftId" form:"giftId" gorm:"column:gift_id;comment:配置id(幸运礼物id);type:int;size:10;"` SendSum int64 `json:"sendSum" form:"sendSum" gorm:"column:send_sum;comment:赠送总次数;type:int;size:10;"` EffectId int64 `json:"effectId" form:"effectId" gorm:"column:effect_id;comment:幸运礼物特效id;type:int;size:10;"` LuckyRate int32 `json:"luckyRate" form:"luckyRate" gorm:"column:lucky_rate;comment:概率: 89% 即 8900;type:int;size:10;"` }
如果含有time.Time 请自行import time包
func GetLuckyGiftRate ¶
func GetLuckyGiftRate(giftId int64) (err error, luckyGiftRate LuckyGiftRate)
func (LuckyGiftRate) TableName ¶
func (LuckyGiftRate) TableName() string
type LuckyGiftRateDetail ¶
type LuckyGiftRateDetail struct { YF_MODEL GiftId int64 `json:"giftId" form:"giftId" gorm:"column:gift_id;comment:配置id(幸运礼物id);type:int;size:10;"` Multiple int32 `json:"multiple" form:"multiple" gorm:"column:multiple;comment:中奖奖励倍数;type:int;size:10;"` Times int64 `json:"times" form:"times" gorm:"column:times;comment:中奖次数;type:int;size:10;"` To int32 `json:"to" form:"to" gorm:"column:to;comment:中奖通知用户范围,1自己,2房间,3全站;type:int;size:10;"` }
如果含有time.Time 请自行import time包
func GetLuckyGiftRateDetail ¶
func GetLuckyGiftRateDetail(id int64) (err error, luckyGiftRateDetail LuckyGiftRateDetail)
func GetLuckyGiftRateDetailList ¶
func GetLuckyGiftRateDetailList(giftId int64) (err error, list []LuckyGiftRateDetail)
func (LuckyGiftRateDetail) TableName ¶
func (LuckyGiftRateDetail) TableName() string
type OrderApple ¶
type OrderApple struct { ID int64 `gorm:"primaryKey"` UserID int64 `gorm:"index:idx_uid;column:user_id;type:bigint(20);not null" json:"userId"` // 用户Id AppleOrderID string `gorm:"index:out_trade_no;column:apple_order_id;type:varchar(64);not null" json:"appleOrderId"` // apple_order_id 苹果Iap的号码 ProductID string `gorm:"column:product_id;type:varchar(64)"` TotalAmount int64 `gorm:"column:total_amount;type:bigint(20);not null;default:0" json:"totalAmount"` // 充值金额,单位分 DiamondNum int64 `gorm:"column:diamond_num;type:bigint(20);not null" json:"diamondNum"` // 充值数量 Status int32 `gorm:"column:status;type:tinyint(3);not null" json:"status"` // 交易状态: 1 成功 非1 失败,,,,-1支付失败,0-待支付,3-支付完成,9-支付关闭 CreatedAt time.Time `gorm:"column:created_at;"` UpdatedAt time.Time `gorm:"column:updated_at;"` DeletedAt gorm.DeletedAt `gorm:"index"` }
iap 订单
type OrderDeposit ¶
type OrderDeposit struct { YF_MODEL Uid int64 `gorm:"column:uid" db:"column:uid" json:"uid" form:"uid"` OutTradeNo string `gorm:"column:out_trade_no" db:"column:out_trade_no" json:"out_trade_no" form:"out_trade_no"` PayType int64 `gorm:"column:pay_type" db:"column:pay_type" json:"pay_type" form:"pay_type"` TotalAmount int64 `gorm:"column:total_amount" db:"column:total_amount" json:"total_amount" form:"total_amount"` DiamondNum int64 `gorm:"column:diamond_num" db:"column:diamond_num" json:"diamond_num" form:"diamond_num"` OrderStatus int64 `gorm:"column:order_status" db:"column:order_status" json:"order_status" form:"order_status"` //交易状态:-1支付失败,0-待支付,3-支付完成,9-支付关闭 }
充值订单表
func GetOrderDepositByCondition ¶
func GetOrderDepositByCondition(query interface{}, args ...interface{}) (order OrderDeposit, err error)
func (OrderDeposit) TableName ¶
func (OrderDeposit) TableName() string
type Package ¶
type Package struct { YF_MODEL Platform int32 `gorm:"column:platform;type:smallint(6);not null;default:0" json:"platform"` // WIN32=0;LINUX=1;MACOS=2;ANDROID=3;IPHONE=4;IPAD=5;BLACKBERRY=6;NACL=7;EMSCRIPTEN=8;TIZEN=9;WINRT=10;WP8=11;MOBILE_BROWSER=100;DESKTOP_BROWSER=101; PkgName string `gorm:"column:pkg_name;type:varchar(64);not null;default:com.live" json:"pkgName"` // 包名字 AppName string `gorm:"column:app_name;type:varchar(128);not null;default:默认" json:"appName"` // APP名称 }
包信息表
type QiNiuLog ¶
type Room ¶
type Room struct { YF_MODEL Title string `json:"title" form:"title" gorm:"column:title;comment:直播间标题;type:varchar(32);size:32;"` UserID int64 `json:"userId" form:"userId" gorm:"column:user_id;comment:主播ID;type:bigint;size:20;"` User User `json:"user" form:"user" gorm:"comment:主播详情"` HasPwd int32 `json:"hasPwd" form:"hasPwd" gorm:"column:has_pwd;comment:密码;type:int;size:16;"` RoomStatus int32 `json:"roomStatus" form:"roomStatus" gorm:"column:room_status;type:smallint;size:4;"` // 房间状态 1 开播 0 关播 IsHot int32 `json:"isHot" form:"isHot" gorm:"column:is_hot;comment:是否热门 0否 1是;type:smallint;size:4;"` HotValue int32 `json:"hotValue" form:"hotValue" gorm:"colums:hot_value;comment:后台设置热度值;type:int;size:8"` WatchNumber int64 `json:"watchNumber" form:"watchNumber" gorm:"colums:watch_number;comment:当前观看人数;type:int;size:8"` AutoHotValue int64 `` /* 157-byte string literal not displayed */ Income int64 `json:"income" form:"income" gorm:"column:income;comment:本场金币收入;type:bigint;size:20"` PullStream string `` /* 129-byte string literal not displayed */ }
如果含有time.Time 请自行import time包
func GetRoomInfoList ¶
func GetRoomInfoList(info pb.LobbyRoomSearchArgs) (err error, list []Room, total int64)
func GetRoomInfoListFollowed ¶
func GetRoomInfoListFollowed(userId int64, info pb.LobbyRoomSearchArgs) (err error, list []Room, total int64)
@author: [piexlmax](https://github.com/piexlmax) @function: GetRoomInfoList @description: 根据用户关注 分页获取Room记录 @param: info request.RoomSearch @return: err error, list interface{}, total int64
type TransactionAli ¶
type TransactionAli struct { YF_MODEL TotalAmount int64 `gorm:"column:total_amount" db:"column:total_amount" json:"total_amount" form:"total_amount"` OutTradeNo string `gorm:"column:out_trade_no" db:"column:out_trade_no" json:"out_trade_no" form:"out_trade_no"` AliTradeNo string `gorm:"column:ali_trade_no" db:"column:ali_trade_no" json:"ali_trade_no" form:"ali_trade_no"` SignType string `gorm:"column:sign_type" db:"column:sign_type" json:"sign_type" form:"sign_type"` NotifyUrl string `gorm:"column:notify_url" db:"column:notify_url" json:"notify_url" form:"notify_url"` TradeType int64 `gorm:"column:trade_type" db:"column:trade_type" json:"trade_type" form:"trade_type"` OrderId int64 `gorm:"column:order_id" db:"column:order_id" json:"order_id" form:"order_id"` TradeStatus string `gorm:"column:trade_status" db:"column:trade_status" json:"trade_status" form:"trade_status"` NotifyTime time.Time `gorm:"column:notify_time" db:"column:notify_time" json:"notify_time" form:"notify_time"` NotifyId string `gorm:"column:notify_id" db:"column:notify_id" json:"notify_id" form:"notify_id"` GmtCreate time.Time `gorm:"column:gmt_create" db:"column:gmt_create" json:"gmt_create" form:"gmt_create"` GmtPayment time.Time `gorm:"column:gmt_payment" db:"column:gmt_payment" json:"gmt_payment" form:"gmt_payment"` GmtClose time.Time `gorm:"column:gmt_close" db:"column:gmt_close" json:"gmt_close" form:"gmt_close"` SellerId string `gorm:"column:seller_id" db:"column:seller_id" json:"seller_id" form:"seller_id"` BuyerId string `gorm:"column:buyer_id" db:"column:buyer_id" json:"buyer_id" form:"buyer_id"` Subject string `gorm:"column:subject" db:"column:subject" json:"subject" form:"subject"` }
支付宝交易记录
func (TransactionAli) TableName ¶
func (TransactionAli) TableName() string
type TransactionWx ¶
type TransactionWx struct { YF_MODEL TotalAmount int64 `gorm:"column:total_amount" db:"column:total_amount" json:"total_amount" form:"total_amount"` OutTradeNo string `gorm:"column:out_trade_no" db:"column:out_trade_no" json:"out_trade_no" form:"out_trade_no"` TransactionId string `gorm:"column:transaction_id" db:"column:transaction_id" json:"transaction_id" form:"transaction_id"` EventType string `gorm:"column:event_type" db:"column:event_type" json:"event_type" form:"event_type"` NotifyUrl string `gorm:"column:notify_url" db:"column:notify_url" json:"notify_url" form:"notify_url"` TradeType int64 `gorm:"column:trade_type" db:"column:trade_type" json:"trade_type" form:"trade_type"` WxTradeType int64 `gorm:"column:wx_trade_type" db:"column:wx_trade_type" json:"wx_trade_type" form:"wx_trade_type"` OrderId int64 `gorm:"column:order_id" db:"column:order_id" json:"order_id" form:"order_id"` TradeStatus string `gorm:"column:trade_status" db:"column:trade_status" json:"trade_status" form:"trade_status"` SuccessTime time.Time `gorm:"column:success_time" db:"column:success_time" json:"success_time" form:"success_time"` Mchid string `gorm:"column:mchid" db:"column:mchid" json:"mchid" form:"mchid"` Openid string `gorm:"column:openid" db:"column:openid" json:"openid" form:"openid"` }
func (TransactionWx) TableName ¶
func (TransactionWx) TableName() string
type UpgradeLvCfg ¶
type User ¶
type User struct { YF_MODEL Pwd string `json:"pwd" form:"pwd" gorm:"column:pwd;comment:密码;type:varchar(32);size:32;"` LoginName string `gorm:"column:login_name;type:varchar(255);comment:登录名;"` Nick string `json:"nick" form:"nick" gorm:"column:nick;comment:昵称;type:varchar(64);size:64;"` AccountType int32 `` /* 137-byte string literal not displayed */ Openid string `json:"openid" form:"openid" gorm:"column:openid;comment:openid;type:varchar(64);size:64;"` Unionid string `json:"unionid" form:"unionid" gorm:"column:unionid;comment:unionid;type:varchar(64);size:64;"` Sex int32 `json:"sex" form:"sex" gorm:"column:sex;comment:性别:0未知1男2女3第三性别;type:tinyint;"` Head string `json:"head" form:"head" gorm:"column:head;comment:头像url;type:varchar(500);size:500;"` City string `json:"city" form:"city" gorm:"column:city;comment:所在城市;type:varchar(64);size:64;"` Phone int64 `json:"phone" form:"phone" gorm:"column:phone;comment:手机号;type:bigint;size:19;"` DevDesc string `json:"devDesc" form:"devDesc" gorm:"column:dev_desc;comment:设备描述;type:varchar(512);size:512;"` Platform string `json:"platform" form:"platform" gorm:"column:platform;comment:平台类型;type:varchar(32);size:32;"` Ver string `json:"ver" form:"ver" gorm:"column:ver;comment:客户端版本号;type:varchar(16);size:16;"` Birthday time.Time `json:"birthday" form:"birthday" gorm:"column:birthday;comment:生日;type:date;"` RegDate time.Time `json:"regDate" form:"regDate" gorm:"column:reg_date;comment:注册日期;type:date;"` Flavor string `json:"flavor" form:"flavor" gorm:"column:flavor;comment:渠道;type:varchar(16);size:16;"` IsLive int32 `json:"is_live" gorm:"column:is_live;type:tinyint(1);comment:是否直播;"` Lv int32 `json:"lv" form:"lv" gorm:"column:lv;comment:用户等级;type:int;size:10;"` Exp int64 `json:"exp" form:"exp" gorm:"column:exp;comment:经验值;type:bigint;size:19;"` AnchorType int32 `` /* 221-byte string literal not displayed */ AnchorLv int32 `json:"anchorLv" form:"anchorLv" gorm:"column:anchor_lv;comment:主播等级;type:int;size:10;"` AnchorExp int64 `json:"anchorExp" form:"anchorExp" gorm:"column:anchor_exp;comment:主播经验值;type:bigint;size:19;"` Vip int32 `json:"vip" form:"vip" gorm:"column:vip;comment:vip等级;type:int;size:10;"` StarLv int32 `json:"starLv" form:"starLv" gorm:"column:star_lv;comment:主播星级;type:int;size:10;"` Gid int64 `json:"gid" form:"gid" gorm:"column:gid;comment:公会id;type:int;size:10;"` Gold int64 `json:"gold" form:"gold" gorm:"column:gold;comment:持有金币数;type:bigint;size:19;"` TotalGold int64 `json:"totalGold" form:"totalGold" gorm:"column:total_gold;comment:历史累计金币;type:bigint;size:19;"` Diamonds int64 `json:"diamonds" form:"diamonds" gorm:"column:diamonds;comment:持有钻石数;type:bigint;size:19;"` Money int64 `json:"money" form:"money" gorm:"column:money;comment:累计充值,单位:美分;type:bigint;size:19;"` Latitude float64 `json:"latitude" form:"latitude" gorm:"column:latitude;comment:经度;type:double;size:22;"` Longitude float64 `json:"longitude" form:"longitude" gorm:"column:longitude;comment:纬度;type:double;size:22;"` PersonalStatus string `json:"personalStatus" form:"personalStatus" gorm:"column:personal_status;comment:个性签名;type:varchar(32);size:32;"` DeviceToken string `` /* 130-byte string literal not displayed */ DeviceTokenVoip string `` /* 143-byte string literal not displayed */ RegistrationId string `` /* 143-byte string literal not displayed */ VirtualCity int32 `` /* 189-byte string literal not displayed */ HideCity int32 `` /* 129-byte string literal not displayed */ ShumeiDeviceId string `json:"shumeiDeviceId" form:"shumeiDeviceId" gorm:"column:shumei_device_id;comment:数美id;type:varchar(128);size:128;"` }
type UserLvCfg ¶
type UserLvCfg struct { YF_MODEL Lv int32 `gorm:"column:lv;type:smallint(6);comment:用户等级;"` Privilege int32 `gorm:"column:privilege;type:smallint(6);comment:用户特权;"` Exp int64 `gorm:"column:exp;type:bigint(20);comment:用户经验值;"` }
type UserRoom ¶
type UserRoom struct { YF_MODEL UserID int64 `json:"userId" form:"userId" gorm:"column:user_id;comment:用户ID;type:bigint;size:20;"` User User `json:"user" form:"user" gorm:"column:用户信息"` Gold int64 `json:"gold" form:"gold" gorm:"column:gold"` RoomID int64 `json:"roomId" form:"roomId" gorm:"column:room_id;comment:房间ID;type:bigint;size:20;"` }
如果含有time.Time 请自行import time包
type UserStar ¶
type UserStar struct { ID uint `gorm:"primaryKey"` UserID int64 `json:"userId" form:"userId" gorm:"column:user_id;comment:用户id;type:bigint;size:20;"` User User `json:"user" form:"user" gorm:"comment:用户详情"` StarUserID int64 `json:"starUserId" form:"starUserId" gorm:"column:star_user_id;comment:关注用户Id;type:bigint;size:20;"` StarUser User `json:"starUser" form:"starUser" gorm:"comment:关注的用户详情"` CreatedAt time.Time UpdatedAt time.Time }
如果含有time.Time 请自行import time包
type UserStar2 ¶
type UserWalletInfo ¶
type UserWalletInfo struct { ID int64 `gorm:"primaryKey"` Nick string `gorm:"column:nick"` Gold int64 `gorm:"column:gold"` Diamonds int64 `gorm:"column:diamonds"` }
查询部分数据 防止全部查询 用户金币 钻石
func GetUserWalletInfo ¶
func GetUserWalletInfo(userId int64) (*UserWalletInfo, error)
func (UserWalletInfo) TableName ¶
func (UserWalletInfo) TableName() string
type ValidAnchorLog ¶
type ValidAnchorLog struct { YF_MODEL AnchorID int64 `json:"anchorId" form:"anchorId" gorm:"column:anchor_id;comment:有效主播ID;type:bigint;size:20;"` Anchor User `json:"anchor" form:"anchor"` GuildID int64 `json:"guildId" form:"guildId" gorm:"column:guild_id;comment:公会ID;type:bigint;size:20;"` Guild Guild `json:"guild" form:"guild"` Income int64 `json:"income" form:"income" gorm:"column:income;comment:礼物收益;type:bigint;size:20;"` LiveTime int64 `json:"liveTime" form:"liveTime" gorm:"column:live_time;comment:当日直播时长;type:bigint;size:20;"` Day int32 `json:"day" form:"day" gorm:"column:day;comment:日期;type:bigint;size:12;"` }
如果含有time.Time 请自行import time包
func GetValidAnchorLog ¶
func GetValidAnchorLog(id uint) (err error, validAnchorLog ValidAnchorLog)
func GetValidAnchorLogInfoList ¶
func GetValidAnchorLogInfoList(info pb.ValidAnchorLogSearchValidAnchorLogArgs) (err error, list []ValidAnchorLog, total int64)
func (ValidAnchorLog) TableName ¶
func (ValidAnchorLog) TableName() string
type WaitUpdatePic ¶
type WaitUpdatePic struct { ID int64 `gorm:"primaryKey"` UserId int64 // 用户 Id ImgOld string // 七牛 key ImgNew string // 七牛 key PicType int32 // 图片来路 , 1 用户user表的 头像上传 2 创建工会审核 3 修改工会 Replace int32 // 默认 0 是否已经替换 原来的数据库图片 replace CreatedAt time.Time // UpdatedAt time.Time // }
func GetWaitUpdatePic ¶
func GetWaitUpdatePic(newPicKey string) (*WaitUpdatePic, error)
func (WaitUpdatePic) TableName ¶
func (WaitUpdatePic) TableName() string
type WithdrawInfoResult ¶
type WithdrawInfoResult struct { Id int64 Uid int64 Status int Mode int FullName string WithdrawAmount int64 NetAmount int64 GuildId int64 GuildName string Nick string AccountNumber string CreatedAt time.Time Reason string }
func GetWithdrawInfoList ¶
func GetWithdrawInfoList(info pb.WithdrawSearchArgs) (err error, list []WithdrawInfoResult, total int64)
Source Files ¶
- account_ban_log.go
- anchor_ban_log.go
- anchor_income_log.go
- anchor_lv_cfg.go
- app_version.go
- banner.go
- bind.go
- bind_log.go
- cash_withdraw.go
- cash_withdraw_account.go
- cash_withdraw_account_log.go
- cash_withdraw_cfg.go
- cash_withdraw_detail.go
- cash_withdraw_golden.go
- charm_user.go
- diamond_log.go
- diamond_price.go
- flavors.go
- gift_info.go
- gift_info_old_data.go
- gift_order.go
- global.go
- gold2diamond.go
- gold_log.go
- guild.go
- guild_audit.go
- guild_income_log.go
- guild_lv_cfg.go
- likes_diamond_log.go
- likes_lv_cfg.go
- likes_times_cfg.go
- live_log.go
- lucky_gift_rate.go
- lucky_gift_rate_detail.go
- order_apple.go
- order_deposit.go
- package.go
- qiniu_log.go
- room.go
- transaction_ali.go
- transaction_wx.go
- user.go
- user_lv_cfg.go
- user_room.go
- user_star.go
- valid_anchor_log.go