prop.go
279 Bytes
package models
import (
"pro2d/common/components"
"pro2d/pb"
)
type PropModel struct {
components.ISchema
Prop *pb.Prop
}
func NewProp(id string) *PropModel {
data := &pb.Prop{
Id: id,
}
m := &PropModel{
ISchema: NewSchema(id, data),
Prop: data,
}
return m
}