role_info

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoleInfo

type RoleInfo struct {
	models.BaseModel

	AppId         int            `gorm:"uniqueIndex:uni_uid_appId_serverId"`
	Uid           uint32         `gorm:"default:null;uniqueIndex:uni_uid_appId_serverId"`
	PlatFormId    string         `gorm:""`
	ChannelId     string         `gorm:""`
	ServerId      string         `gorm:"uniqueIndex:uni_uid_appId_serverId"`
	ServerName    string         `gorm:"type:varchar(255);default:null;"`
	RoleId        string         `gorm:"type:int;"`
	Role          string         `gorm:"type:varchar(64);default:null;"`
	FirstPayDate  time.Time      `gorm:"default:null;"`
	LastPayDate   time.Time      `gorm:"default:null;"`
	LastLoginTime time.Time      `gorm:"default:null;"`
	PayTotal      int            `gorm:"default:0"`
	PayCount      int            `gorm:"default:0"`
	DistinctId    string         `gorm:""`
	AccountId     string         `gorm:""`
	GameVipLevel  string         `gorm:""`
	GameUserLevel int            `gorm:""`
	DeletedAt     gorm.DeletedAt `gorm:"index"`
}

func Find

func Find(uid uint32, appId int, serverId string) (role RoleInfo, err error)

func FindRoleId

func FindRoleId(roleId, appId string) (role RoleInfo, err error)

func UpPayDate

func UpPayDate(uid uint32, appId int, serverId string, payFee int) (role RoleInfo)

func (*RoleInfo) GetDb

func (roleModel *RoleInfo) GetDb() *gorm.DB

func (*RoleInfo) GetStringUID

func (roleModel *RoleInfo) GetStringUID() string

Jump to

Keyboard shortcuts

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