feat:完善项目信息

This commit is contained in:
henry
2022-01-11 10:41:46 +08:00
parent 6712feec35
commit 7cab0fb354
24 changed files with 188 additions and 169 deletions

View File

@ -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,
}
}
}