uniugm/admin/apps/game/model/account.go
2025-04-28 15:56:04 +08:00

28 lines
729 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package model
import (
"admin/internal/db"
"time"
)
func init() {
db.RegisterTableModels(Account{})
}
// Account 空表就是用来兼容资源增删改查公共操作的实际列举账号等都是走各个项目api拉取
type Account struct {
Account string `name:"账号" json:"account"`
ServerConfId string `name:"区服id" json:"serveId"`
RoleIds []string `gorm:"type:json;serializer:json" name:"角色id列表" json:"roleIds"`
LatestLoginTime time.Time `name:"最近登录时间" json:"latest_login_time"`
CreateTime time.Time `name:"创建时间" json:"create_time"`
}
func (lm *Account) TableName() string {
return "account"
}
func (m *Account) GetId() int {
return 0
}