feat:优化项目结构
This commit is contained in:
@ -5,7 +5,7 @@ import (
|
||||
"SciencesServer/app/api/manage/controller"
|
||||
"SciencesServer/app/basic/config"
|
||||
model2 "SciencesServer/app/common/model"
|
||||
"SciencesServer/app/service"
|
||||
"SciencesServer/app/session"
|
||||
"SciencesServer/utils"
|
||||
"errors"
|
||||
"time"
|
||||
@ -13,11 +13,11 @@ import (
|
||||
|
||||
// Demand 技术需求管理
|
||||
type Demand struct {
|
||||
*service.SessionEnterprise
|
||||
*session.Enterprise
|
||||
local string
|
||||
}
|
||||
|
||||
type DemandHandle func(enterprise *service.SessionEnterprise, local string) *Demand
|
||||
type DemandHandle func(session *session.Enterprise, local string) *Demand
|
||||
|
||||
type (
|
||||
// DemandInfo 需求信息
|
||||
@ -182,7 +182,7 @@ func (c *Demand) Delete(id uint64) error {
|
||||
}
|
||||
|
||||
func NewDemand() DemandHandle {
|
||||
return func(enterprise *service.SessionEnterprise, local string) *Demand {
|
||||
return &Demand{SessionEnterprise: enterprise, local: local}
|
||||
return func(session *session.Enterprise, local string) *Demand {
|
||||
return &Demand{Enterprise: session, local: local}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user