feat:完善项目信息
This commit is contained in:
@ -12,10 +12,10 @@ import (
|
||||
// Innovate 创新服务
|
||||
type Innovate struct {
|
||||
*session.Enterprise
|
||||
local string
|
||||
tenantID uint64
|
||||
}
|
||||
|
||||
type InnovateHandle func(session *session.Enterprise, local string) *Innovate
|
||||
type InnovateHandle func(session *session.Enterprise, tenantID uint64) *Innovate
|
||||
|
||||
type (
|
||||
// InnovateInfo 创新服务信息
|
||||
@ -39,7 +39,7 @@ type (
|
||||
)
|
||||
|
||||
// Instance 首页信息
|
||||
func (c *Innovate) Instance(kind int, title string, page, pageSize int) (*controller.ReturnPages, error) {
|
||||
func (c *Innovate) Instance(kind uint64, title string, page, pageSize int) (*controller.ReturnPages, error) {
|
||||
mServiceInnovate := model.NewServiceInnovate()
|
||||
|
||||
out := make([]*model2.ServiceInnovate, 0)
|
||||
@ -109,10 +109,10 @@ func (c *Innovate) Detail(id uint64) (*InnovateDetailInfo, error) {
|
||||
}
|
||||
|
||||
func NewInnovate() InnovateHandle {
|
||||
return func(session *session.Enterprise, local string) *Innovate {
|
||||
return func(session *session.Enterprise, tenantID uint64) *Innovate {
|
||||
return &Innovate{
|
||||
Enterprise: session,
|
||||
local: local,
|
||||
tenantID: tenantID,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user