package technology import "SciencesServer/app/service" // Instance 技术管理 type Instance struct{ *service.SessionEnterprise } type InstanceHandle func(enterprise *service.SessionEnterprise) *Instance func (c *Instance) List(status, page, pageSize int) { } func (c *Instance) Form() { } func (c *Instance) Delete() { } func NewInstance() InstanceHandle { return func(enterprise *service.SessionEnterprise) *Instance { return &Instance{enterprise} } }