role

package
v0.0.0-...-4a0720b Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

*********************************************************

  • Author : Michael
  • Email : dolotech@163.com
  • Last modified : 2016-03-18 10:16
  • Filename : roles.go
  • Description :
  • ******************************************************

Index

Constants

View Source
const (
	LIMIT int = 30
)

Variables

View Source
var OPTION = map[string]string{
	"30":  "30",
	"50":  "50",
	"100": "100",
	"200": "200",
}

Functions

func Edit

func Edit(c echo.Context) error

玩家信息编辑

func List

func List(c echo.Context) error

List 玩家列表, 根据条件检索玩家

func ListOnline

func ListOnline(c echo.Context) error

List 获取在线玩家列表

func Search(c echo.Context) error

玩家列表, 根据条件检索玩家

Types

type UserData

type UserData struct {
	Userid      string // 用户id
	Nickname    string // 用户昵称
	Phone       string // 绑定的手机号码
	Coin        uint32 // 金币
	Diamond     uint32 // 钻石
	Vip         uint32 // Vip
	VipExpire   uint32 // Vip 过期时间
	Create_ip   string // 注册账户时的IP地址
	Create_time uint32 // 注册时间
	Sex         uint32
	Ticket      uint32 //入场券
	Exchange    uint32 //兑换券
	Exp         uint32 // 经验
	Win         uint32
	Lost        uint32
	Ping        uint32
	Photo       string
	Address     string
}

Jump to

Keyboard shortcuts

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