models

package
v0.4.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 1, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB *dbm
)

Functions

func AddUserOnline

func AddUserOnline(data map[string]interface{})

func Admin

func Admin(user_id int) map[string]ModelValue

func AdminRole

func AdminRole(uid int) int

func Admins

func Admins() []map[string]ModelValue

func App

func App(app_id int) *structure.SysApp

func Apps

func Apps() []structure.SysApp

func Apps2

func Apps2() []map[string]ModelValue

func CheckCN

func CheckCN(nickname string) bool

func CheckEmail

func CheckEmail(email string) bool

func CheckIP

func CheckIP(ip string) bool

func CoverUpdate

func CoverUpdate(table string, prikeys []string, data map[string]interface{}) bool

CoverUpdate 表覆盖更新

func CrontabReportDay

func CrontabReportDay(day string) int

func CrontabReportMinuteOnline

func CrontabReportMinuteOnline() int

func CrontabReportMonth

func CrontabReportMonth(month string) int

func DeleteAdmin

func DeleteAdmin(user_id int)

func DeleteAdminGame

func DeleteAdminGame(user_id int)

func DeleteAllMail

func DeleteAllMail(pids []int)

func DeleteAndroidLevel

func DeleteAndroidLevel(gid int, rtype int)

func DeleteAnnouncement

func DeleteAnnouncement(aid int)

func DeleteApp

func DeleteApp(app_id int)

func DeleteBoxesDelete

func DeleteBoxesDelete(bid int)

func DeleteForbidDeviceuid

func DeleteForbidDeviceuid(id int)

func DeleteFunc

func DeleteFunc(func_id int)

func DeleteFuncs

func DeleteFuncs(app_id int)

func DeleteGameBlockIP

func DeleteGameBlockIP(ip string)

func DeleteGameCDNS

func DeleteGameCDNS(id string)

func DeleteGameGoldsTyle

func DeleteGameGoldsTyle(gsid int)

func DeleteGameHallserver

func DeleteGameHallserver(hid int)

func DeleteGameLiveness

func DeleteGameLiveness(livetype int, liveness int)

func DeleteGamePets

func DeleteGamePets(id int)

func DeleteGameRankStat

func DeleteGameRankStat(stars int)

func DeleteGameRatioFactor

func DeleteGameRatioFactor(ratio int)

func DeleteGameRoleExps

func DeleteGameRoleExps(quality int, role_level int)

func DeleteGameRoleSkills

func DeleteGameRoleSkills(quality int, skill_level int)

func DeleteGameRoleVoices

func DeleteGameRoleVoices(rvid int)

func DeleteGameRoles

func DeleteGameRoles(roid int)

func DeleteGameRoomStat

func DeleteGameRoomStat(gid int, rtype int, gametype int)

func DeleteGameServers

func DeleteGameServers(id int)

func DeleteGameServers2

func DeleteGameServers2(ip string)

func DeleteGameShopConfig

func DeleteGameShopConfig(id int)

func DeleteGameSkills

func DeleteGameSkills(id int)

func DeleteGameTask

func DeleteGameTask(id int)

func DeleteGameType

func DeleteGameType(id int)

func DeleteGameVipLevel

func DeleteGameVipLevel(id int)

func DeleteGameWinStreak

func DeleteGameWinStreak(wins int)

func DeleteGoldBlack

func DeleteGoldBlack(uid int)

func DeleteGoldCoinCard

func DeleteGoldCoinCard(gameid int, days int)

func DeleteHallNotice

func DeleteHallNotice(id int)

func DeleteMail

func DeleteMail(pid int)

func DeleteMatchSeasonAwards

func DeleteMatchSeasonAwards(id int)

func DeleteProps

func DeleteProps(pid int)

func DeleteRole

func DeleteRole(role_id int) bool

func DeleteRoleFuncs

func DeleteRoleFuncs(role_id int) bool

func DeleteUser

func DeleteUser(user_id int)

func DeleteUserBox

func DeleteUserBox(ubid int)

func DeleteUserFake

func DeleteUserFake(uid int, fakeuid int)

func DeleteUserProps

func DeleteUserProps(upid int)

func DeleteUserRoles

func DeleteUserRoles(uroid int)

func DeleteUserSendPost

func DeleteUserSendPost(uids []int)

func Func

func Func(func_id int) *structure.SysAppFunction

func Funcs

func Funcs(appid, rid int) []map[string]ModelValue

func Functions

func Functions() []map[string]ModelValue

func GetAllUser

func GetAllUser() []structure.YlyUser

func GetAnnouncement

func GetAnnouncement() []structure.P2pAnnouncement

func GetAuditList

func GetAuditList() []structure.GameAudit

审核开关

func GetCode

func GetCode(uid int, nickname string, stime int64, etime int64, gid int) []int

func GetConfP2pJipaiqi

func GetConfP2pJipaiqi() []structure.ConfP2pJipaiqi

金币记牌器

func GetCountDate

func GetCountDate(years int, months int, days int) time.Time

func GetDayRound

func GetDayRound(stime int64, etime int64, code []int, mytype int, start int, limit int, ridx int, gidStr string, gidInt int) []map[string]ModelValue

func GetDayRoundCount

func GetDayRoundCount(stime int64, etime int64, code []int, mytype int, ridx int, gidStr string, gidInt int) int

func GetDb

func GetDb() *xorm.Engine

func GetDefaultRoles

func GetDefaultRoles() []structure.GameRoles

func GetDumbAll

func GetDumbAll(state int) []structure.GameUserfield

func GetDumbCount

func GetDumbCount(begin int, end int, uid int, state int) int

func GetDumbs

func GetDumbs(begin int, end int, uid int, state int, oc int, os string, page int, pageSize int) []structure.UsersRelated

func GetFeedback

func GetFeedback(ftype int, stime int, etime int, page int, pageSize int) []structure.P2pFeedback

func GetFeedbackCount

func GetFeedbackCount(ftype int, stime int, etime int) int

func GetForbidByInvitor

func GetForbidByInvitor(uid int) []structure.YlyMemberWeixin

func GetForbidCount

func GetForbidCount(begin int, end int, key string, is_forbid int) int

func GetForbidDeviceuid

func GetForbidDeviceuid() []structure.YlyForbidDeviceuid

func GetForbidDeviceuidByDevice

func GetForbidDeviceuidByDevice(device string) int

func GetForbidList

func GetForbidList(uid int, sdate int, edate int, page int, pageSize int) []structure.LogForbid

func GetForbidListCount

func GetForbidListCount(uid int, sdate int, edate int) int

func GetForbids

func GetForbids(begin int, end int, key string, oc int, os string, page int, pageSize int, is_forbid int) []structure.UsersRelated

func GetGameAndroidLevel

func GetGameAndroidLevel() []structure.GameAndroidLevel

金币场机器人管理

func GetGameAndroidLevelByGsid

func GetGameAndroidLevelByGsid(gid int, rtype int) *structure.GameAndroidLevel

func GetGameBlockIP

func GetGameBlockIP() []structure.GameBlockIp

func GetGameBoxes

func GetGameBoxes(args ...int) []structure.GameBoxes

func GetGameCDNS

func GetGameCDNS() []structure.GameCdns

游戏CDN管理

func GetGameConfig

func GetGameConfig(id int) *structure.GameConfig

func GetGameGoldsType

func GetGameGoldsType() []*structure.GameGoldsType

func GetGameHallServer

func GetGameHallServer() []structure.GameHallserver

func GetGameLiveness

func GetGameLiveness() []structure.GameLiveness

func GetGamePets

func GetGamePets() []structure.GamePets

func GetGameProps

func GetGameProps() []structure.GameProps

func GetGameRankStat

func GetGameRankStat() []structure.GameRankStat

段位

func GetGameRatioFactor

func GetGameRatioFactor() []structure.GameRatioFactor

func GetGameRoleExps

func GetGameRoleExps() []structure.GameRoleExps

func GetGameRoleSkills

func GetGameRoleSkills() []structure.GameRoleSkills

func GetGameRoleVoices

func GetGameRoleVoices() []structure.GameRoleVoices

获取用户语音资源

func GetGameRoles

func GetGameRoles() []structure.GameRoles

func GetGameRoomStat

func GetGameRoomStat() []structure.GameRoomStat

func GetGameServers

func GetGameServers() []structure.GameServers

WEB服务器管理

func GetGameServers2

func GetGameServers2() []structure.GameServers2

服务器管理

func GetGameShopConfig

func GetGameShopConfig(args ...int) []structure.GameShopConfig

func GetGameSkills

func GetGameSkills() []structure.GameSkills

func GetGameTask

func GetGameTask(ttype int) []structure.GameTask

func GetGameType

func GetGameType() []structure.GameType

游戏管理

func GetGameVipLevel

func GetGameVipLevel() []*structure.GameVipLevel

func GetGameWinStreak

func GetGameWinStreak() []structure.GameWinStreak

func GetGoldsRank

func GetGoldsRank() []structure.UserGoldsRank

func GetGradeLastRank

func GetGradeLastRank(season int) *structure.UserSeasonRank

func GetGradeRankStars

func GetGradeRankStars(season, rank int) int

func GetHallNotice

func GetHallNotice(htype int, page int, pageSize int) []structure.GameHallNotice

大厅公告管理

func GetHallNoticeById

func GetHallNoticeById(id int) *structure.GameHallNotice

func GetHallNoticeCount

func GetHallNoticeCount(htype int) int

func GetLogVipLevel

func GetLogVipLevel(uid int) []*structure.LogVipLevel

func GetMail

func GetMail(key string, fromid int, toid int, isShow int, page int, pageSize int) []structure.YlyPost

func GetMailCount

func GetMailCount(key string, fromid int, toid int, isShow int) int

func GetMatchGradeSeason

func GetMatchGradeSeason() int

func GetMatchGradeUserRecord

func GetMatchGradeUserRecord(uid, limit int) []structure.LogCreateUserRankLiushui

获取排位赛个人记录

func GetMatchSeasonAwards

func GetMatchSeasonAwards(args ...int) []structure.MatchSeasonAwards

func GetMemberByID

func GetMemberByID(uid int) *structure.YlyMember

func GetMemberMobile

func GetMemberMobile(uid int, deviceuid string) *structure.YlyMemberMobile

func GetMobileUser

func GetMobileUser(uid int) *structure.YlyMemberMobile

func GetOnlineNum

func GetOnlineNum(date int, start int, end int) []structure.LogOnlineNum

func GetOnlineUsers

func GetOnlineUsers() []structure.YlyOnline

func GetOpeningTimeBoxes

func GetOpeningTimeBoxes(uid, nowtime int) []*structure.UserBoxesRelated

func GetReportServerFeedback

func GetReportServerFeedback(start string, end string) []structure.ReportDayServerFeedback

大厅服务器连接失败日志

func GetSeasonLastAwards

func GetSeasonLastAwards(season int) string

func GetSeasonRank

func GetSeasonRank(season int) []structure.UserSeasonRank

func GetSeasonRankByUid

func GetSeasonRankByUid(season, uid int) *structure.UserSeasonRank

func GetSeasonRankState

func GetSeasonRankState(season int) int

func GetSeasonScoreRanks

func GetSeasonScoreRanks(season, num int) []structure.UserMatchScore

func GetServerFeedback

func GetServerFeedback(day int) []map[string]ModelValue

大厅服务器开始

func GetTestUsers

func GetTestUsers(offset, pageSize int) []structure.YlyUser

func GetUIDByADID

func GetUIDByADID(adid, duid string) int

func GetUserAchievement

func GetUserAchievement(uid int) *structure.UserAchievement

GetUserAchievement 获取用户成就

func GetUserBoxes

func GetUserBoxes(uid int, args ...int) []structure.UserBoxesRelated

func GetUserByID

func GetUserByID(uid int) *structure.YlyUser

func GetUserByName

func GetUserByName(username string) *structure.YlyUser

func GetUserByNickname

func GetUserByNickname(nickname string) *structure.YlyUser

func GetUserCount

func GetUserCount() int64

func GetUserFakeList

func GetUserFakeList() []structure.YlyMemberFake

模拟登录

func GetUserForbid

func GetUserForbid() []structure.YlyMember

func GetUserGameInfo

func GetUserGameInfo(uid int) *structure.UserGameInfo

func GetUserLotteryBoxTimes

func GetUserLotteryBoxTimes(uid, bid int, begin, end int64) int

计算用户抽卡宝箱已经抽卡次数

func GetUserMailByPid

func GetUserMailByPid(pid int) *structure.YlyPost

func GetUserMailByToid

func GetUserMailByToid(uid int) []structure.YlyPost

func GetUserMatchScore

func GetUserMatchScore(season, uid int) *structure.UserMatchScore

func GetUserProps

func GetUserProps(uid int, args ...int) []structure.UserPropsRelated

func GetUserPropsNum

func GetUserPropsNum(uid int) int

func GetUserRepeatRrops

func GetUserRepeatRrops(uid int) []structure.UserPropsRelated

func GetUserRoleVoices

func GetUserRoleVoices(roid, skillLevel int) []structure.GameRoleVoices

func GetUserRoles

func GetUserRoles(uid int, args ...int) []structure.UserRolesRelated

func GetUserSendPost

func GetUserSendPost() []structure.UserSendPost

func GetUserServerIp

func GetUserServerIp(uid int) string

func GetValType

func GetValType(val interface{}) string

func GetWeixinUserInvitor

func GetWeixinUserInvitor(uid int) int

GetWeixinUserInvitor 获取微信邀请人

func GetWeixinUserUnionID

func GetWeixinUserUnionID(uid int) string

func GetYlyPostByPid

func GetYlyPostByPid(pid int) []structure.YlyPost

func GoldBlac

func GoldBlac(key int, page int, pageSize int) []structure.GoldsBlacklist

func GoldBlacCount

func GoldBlacCount(key int) int

func HallNotice

func HallNotice(appid int) []structure.GameHallNotice

func IfcToFloat64

func IfcToFloat64(i interface{}) float64

func IfcToInt

func IfcToInt(i interface{}) int

func IfcToInt64

func IfcToInt64(i interface{}) int64

func IfcToString

func IfcToString(i interface{}) string

func IncreUpdate

func IncreUpdate(table string, prikeys []string, data map[string]interface{}) bool

IncreUpdate 表累加更新

func InsertAdmin

func InsertAdmin(admin *structure.SysAdminUser) bool

func InsertAllMail

func InsertAllMail(data []structure.YlyPost) bool

func InsertAndroidLevel

func InsertAndroidLevel(data *structure.GameAndroidLevel) int

func InsertAnnouncement

func InsertAnnouncement(data *structure.P2pAnnouncement) int

func InsertApp

func InsertApp(app *structure.SysApp)

func InsertConfigLogin

func InsertConfigLogin(data *structure.LogConfigLogin) bool

func InsertFeedback

func InsertFeedback(data *structure.P2pFeedback) int

func InsertForbidDeviceuid

func InsertForbidDeviceuid(data *structure.YlyForbidDeviceuid) bool

func InsertForbidLog

func InsertForbidLog(data map[string]interface{}) bool

func InsertFunc

func InsertFunc(funcs *structure.SysAppFunction)

func InsertGameBlockIP

func InsertGameBlockIP(data *structure.GameBlockIp) bool

func InsertGameBoxes

func InsertGameBoxes(data *structure.GameBoxes) int

func InsertGameCDNS

func InsertGameCDNS(data *structure.GameCdns) string

func InsertGameGoldsType

func InsertGameGoldsType(data *structure.GameGoldsType) int

func InsertGameHallserver

func InsertGameHallserver(data *structure.GameHallserver) bool

func InsertGameLiveness

func InsertGameLiveness(data *structure.GameLiveness) bool

func InsertGamePets

func InsertGamePets(data *structure.GamePets) int

func InsertGameProps

func InsertGameProps(data *structure.GameProps) int

func InsertGameRankStat

func InsertGameRankStat(data *structure.GameRankStat) int

func InsertGameRatioFactor

func InsertGameRatioFactor(data *structure.GameRatioFactor) bool

func InsertGameRoleExps

func InsertGameRoleExps(data *structure.GameRoleExps) int

func InsertGameRoleSkills

func InsertGameRoleSkills(data *structure.GameRoleSkills) int

func InsertGameRoleVoices

func InsertGameRoleVoices(data *structure.GameRoleVoices) int

func InsertGameRoles

func InsertGameRoles(data *structure.GameRoles) int

func InsertGameRoomStat

func InsertGameRoomStat(data *structure.GameRoomStat) int

func InsertGameServers

func InsertGameServers(data *structure.GameServers) int

func InsertGameServers2

func InsertGameServers2(data *structure.GameServers2) string

func InsertGameShopConfig

func InsertGameShopConfig(data *structure.GameShopConfig) int

func InsertGameSkills

func InsertGameSkills(data *structure.GameSkills) int

func InsertGameTask

func InsertGameTask(data *structure.GameTask) int

func InsertGameType

func InsertGameType(data *structure.GameType) int

func InsertGameVipLevel

func InsertGameVipLevel(data *structure.GameVipLevel) bool

func InsertGameWinStreak

func InsertGameWinStreak(data *structure.GameWinStreak) bool

func InsertGoldBlac

func InsertGoldBlac(data *structure.GoldsBlacklist) int

func InsertGoldCoinCard

func InsertGoldCoinCard(data *structure.ConfP2pJipaiqi) int

func InsertHallNotice

func InsertHallNotice(data *structure.GameHallNotice) bool

func InsertLogVipLevel

func InsertLogVipLevel(data *structure.LogVipLevel)

func InsertMail

func InsertMail(data *structure.YlyPost) int

func InsertMatchSeasonAwards

func InsertMatchSeasonAwards(data *structure.MatchSeasonAwards) int

func InsertMemeberMobile

func InsertMemeberMobile(data *structure.YlyMemberMobile) bool

func InsertMobileLogin

func InsertMobileLogin(data *structure.LogMobileLogin) bool

func InsertMobileLogin2

func InsertMobileLogin2(uid int, ip string)

func InsertMotor

func InsertMotor(data *structure.YlyMotor)

func InsertRecurringUser

func InsertRecurringUser(data *structure.LogRecurringUser) int

InsertRecurringUser 插入回流用户

func InsertRegisterIp

func InsertRegisterIp(ip string)

func InsertRole

func InsertRole(role *structure.SysRole) int

func InsertRoleFuncs

func InsertRoleFuncs(rolefuncs *structure.SysRoleFunction)

func InsertServerFeedBack

func InsertServerFeedBack(uid int, day, server, ip string) bool

func InsertUser

func InsertUser(user *structure.YlyMember) bool

func InsertUserAchievement

func InsertUserAchievement(data *structure.UserAchievement) bool

func InsertUserBox

func InsertUserBox(data *structure.UserBoxes) bool

func InsertUserFake

func InsertUserFake(data *structure.YlyMemberFake) int

func InsertUserLotteryBox

func InsertUserLotteryBox(data *structure.LogLotteryCards) bool

func InsertUserPropsLog

func InsertUserPropsLog(data *structure.LogUserProps)

func InsertUserRoles

func InsertUserRoles(data *structure.UserRoles) bool

func InsertUserSendPost

func InsertUserSendPost(data []structure.UserSendPost) bool

func InsertUserfield

func InsertUserfield(data *structure.GameUserfield) bool

func Int64ToString

func Int64ToString(valint int64) string

func Int64Toint

func Int64Toint(valint int64) int

func LogUserDayLogin

func LogUserDayLogin(uid, day int)

func LogUserLogin

func LogUserLogin(login *structure.LogUserLogin) int64

func MapArrToMV

func MapArrToMV(ms []map[string]interface{}) []map[string]ModelValue

func MapFaceToMV

func MapFaceToMV(m map[string]interface{}) map[string]ModelValue

func Napps

func Napps() []map[string]ModelValue

func RemoveUserOnline

func RemoveUserOnline(uid int)

func Role

func Role(role_id int) *structure.SysRole

func Roles

func Roles() []structure.SysRole

func RolesAll

func RolesAll() []structure.SysRole

func StrToTime

func StrToTime(str string, tpl string) int64

func StringToInt

func StringToInt(valstr string) int

func Time

func Time() int

func UpdateAdmin

func UpdateAdmin(user_id int, admin *structure.SysAdminUser) bool

func UpdateAndroidLevel

func UpdateAndroidLevel(gid int, rtype int, data *structure.GameAndroidLevel) bool

func UpdateAnnouncement

func UpdateAnnouncement(aid int, data *structure.P2pAnnouncement)

func UpdateApp

func UpdateApp(app_id int, app *structure.SysApp)

func UpdateDumb

func UpdateDumb(uid int, data map[string]interface{}, state int) bool

func UpdateFeedback

func UpdateFeedback(id int)

func UpdateFunc

func UpdateFunc(func_id int, funcs *structure.SysAppFunction)

func UpdateGameBlockIP

func UpdateGameBlockIP(ip string, data *structure.GameBlockIp) bool

func UpdateGameBoxes

func UpdateGameBoxes(bid int, data *structure.GameBoxes) bool

func UpdateGameCDNS

func UpdateGameCDNS(id string, data *structure.GameCdns) bool

func UpdateGameConfig

func UpdateGameConfig(id, v int, t string)

func UpdateGameGoldsType

func UpdateGameGoldsType(gsid int, data *structure.GameGoldsType) bool

func UpdateGameHallserver

func UpdateGameHallserver(hid int, data *structure.GameHallserver) bool

func UpdateGameLiveness

func UpdateGameLiveness(livetype int, liveness int, data *structure.GameLiveness) bool

func UpdateGamePets

func UpdateGamePets(id int, data *structure.GamePets) bool

func UpdateGameProps

func UpdateGameProps(pid int, data *structure.GameProps) bool

func UpdateGameRankStat

func UpdateGameRankStat(stars int, data *structure.GameRankStat) bool

func UpdateGameRatioFactor

func UpdateGameRatioFactor(ratio int, data *structure.GameRatioFactor) bool

func UpdateGameRoleExps

func UpdateGameRoleExps(quality int, role_level int, data *structure.GameRoleExps) bool

func UpdateGameRoleSkills

func UpdateGameRoleSkills(quality int, skill_level int, data *structure.GameRoleSkills) bool

func UpdateGameRoleVoices

func UpdateGameRoleVoices(rvid int, data *structure.GameRoleVoices) bool

func UpdateGameRoles

func UpdateGameRoles(roid int, data *structure.GameRoles) bool

func UpdateGameRoomStat

func UpdateGameRoomStat(gid int, rtype int, gametype int, data *structure.GameRoomStat) bool

func UpdateGameServers

func UpdateGameServers(id int, data *structure.GameServers) bool

func UpdateGameServers2

func UpdateGameServers2(ip string, data *structure.GameServers2) bool

func UpdateGameShopConfig

func UpdateGameShopConfig(id int, data *structure.GameShopConfig) bool

func UpdateGameSkills

func UpdateGameSkills(id int, data *structure.GameSkills) bool

func UpdateGameTask

func UpdateGameTask(id int, data *structure.GameTask) bool

func UpdateGameType

func UpdateGameType(id int, data *structure.GameType) bool

func UpdateGameVipLevel

func UpdateGameVipLevel(id int, data *structure.GameVipLevel) bool

func UpdateGameWinStreak

func UpdateGameWinStreak(wins int, data *structure.GameWinStreak) bool

func UpdateGoldCoinCard

func UpdateGoldCoinCard(gameid int, days int, data *structure.ConfP2pJipaiqi) bool

func UpdateHallNotice

func UpdateHallNotice(id int, data *structure.GameHallNotice) bool

func UpdateLogVipLevel

func UpdateLogVipLevel(uid, level int, data map[string]interface{}) bool

func UpdateMatchGradeSeason

func UpdateMatchGradeSeason(season int, data map[string]interface{}) bool

func UpdateMatchSeasonAwards

func UpdateMatchSeasonAwards(id int, data *structure.MatchSeasonAwards) bool

func UpdateMemberMobile

func UpdateMemberMobile(uid int, deviceuid string, data map[string]interface{}) bool

func UpdateMemberOpenID

func UpdateMemberOpenID(appid, uid int, openid string)

func UpdatePageDowns

func UpdatePageDowns(pp string) int

func UpdatePageEnters

func UpdatePageEnters(pp string) int

func UpdateRole

func UpdateRole(role_id int, role *structure.SysRole) bool

func UpdateSeasonNonRanks

func UpdateSeasonNonRanks(season int, data map[string]interface{}) bool

func UpdateUser

func UpdateUser(user_id int, data map[string]interface{}) bool

func UpdateUserAchievement

func UpdateUserAchievement(uid int, data map[string]interface{}) bool

UpdateUserAchievement 更新用户成就

func UpdateUserAllEmails

func UpdateUserAllEmails(pids []int, data map[string]interface{}) bool

func UpdateUserBoxes

func UpdateUserBoxes(ubid int, data map[string]interface{}) bool

func UpdateUserEmails

func UpdateUserEmails(pid int, data *structure.YlyPost) bool

func UpdateUserFake

func UpdateUserFake(id int, data *structure.YlyMemberFake) bool

func UpdateUserField

func UpdateUserField(uid int, data map[string]interface{}) bool

func UpdateUserMatchScore

func UpdateUserMatchScore(season, uid int, data map[string]interface{}) bool

func UpdateUserProps

func UpdateUserProps(upid int, data *structure.UserProps) bool

func UpdateUserRoles

func UpdateUserRoles(uroid int, data map[string]interface{}) bool

func UserCheck

func UserCheck(key string) *structure.YlyUser

func UserFuncOps

func UserFuncOps(uid int) []map[string]interface{}

func UserFunction

func UserFunction(role_id int) []map[string]ModelValue

func UserGames

func UserGames(uid int) []structure.SysAdminUserGame

func Users

func Users(begin, end, key string, oc int, os string, page int, pageSize int) []structure.YlyUser

func UsersCount

func UsersCount(begin, end, key string, oc int, os string) int

Types

type AdminInfo

type AdminInfo struct {
	RoleId      int
	Games       map[int]bool
	Permissions map[string]map[string]bool
}

func GetAdmin

func GetAdmin(uid int) *AdminInfo

type ModelValue

type ModelValue struct {
	Intval int
	Strval string
}

func FaceToMV

func FaceToMV(i interface{}) ModelValue

type PageTotal

type PageTotal struct {
	Total int `json:"total"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL