feat:完善项目
This commit is contained in:
@ -4,10 +4,10 @@ import "SciencesServer/app/session"
|
||||
|
||||
type Instance struct {
|
||||
*session.Enterprise
|
||||
local string
|
||||
tenantID uint64
|
||||
}
|
||||
|
||||
type InstanceHandle func(session *session.Enterprise, local string) *Instance
|
||||
type InstanceHandle func(session *session.Enterprise, tenantID uint64) *Instance
|
||||
|
||||
type InstanceInfo struct {
|
||||
Currency float64 `json:"currency"`
|
||||
@ -18,7 +18,7 @@ func (c *Instance) Instance() (*InstanceInfo, error) {
|
||||
}
|
||||
|
||||
func NewInstance() InstanceHandle {
|
||||
return func(session *session.Enterprise, local string) *Instance {
|
||||
return &Instance{Enterprise: session, local: local}
|
||||
return func(session *session.Enterprise, tenantID uint64) *Instance {
|
||||
return &Instance{Enterprise: session, tenantID: tenantID}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user