GITLAB

zhangqijia / Pro2DServer

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Pro2DServer
  • models
  • team.go
  • 0ce6c418   fix: 修复 bug RoleModels.saveRoleData Browse Code »
    zhangqijia
    2022-03-24 14:18:08 +0800  
team.go 293 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
package models

import (
	"pro2d/common/components"
	"pro2d/pb"
)

type TeamMap map[string]*TeamModel
type TeamModel struct {
	components.ISchema
	Team *pb.Team
}

func NewTeam(data *pb.Team) *TeamModel {
	m := &TeamModel{
		ISchema: NewSchema(data.Id, data),
		Team:    data,
	}

	return m
}