feat:完善项目
This commit is contained in:
@ -13,10 +13,10 @@ import (
|
||||
// Demand 技术需求管理
|
||||
type Demand struct {
|
||||
*session.Enterprise
|
||||
local string
|
||||
tenantID uint64
|
||||
}
|
||||
|
||||
type DemandHandle func(session *session.Enterprise, local string) *Demand
|
||||
type DemandHandle func(session *session.Enterprise, tenantID uint64) *Demand
|
||||
|
||||
type (
|
||||
// DemandInfo 需求信息
|
||||
@ -149,7 +149,7 @@ func (c *Demand) Form(params *DemandParams) error {
|
||||
return model2.Updates(mTechnologyDemand.TechnologyDemand, mTechnologyDemand.TechnologyDemand)
|
||||
}
|
||||
mTechnologyDemand.UID = c.UID
|
||||
mTechnologyDemand.Local.Local = c.local
|
||||
mTechnologyDemand.TenantID = c.tenantID
|
||||
|
||||
if params.IsSubmit > 0 {
|
||||
mTechnologyDemand.Status = model2.TechnologyDemandStatusForExamining
|
||||
@ -178,7 +178,7 @@ func (c *Demand) Delete(id uint64) error {
|
||||
}
|
||||
|
||||
func NewDemand() DemandHandle {
|
||||
return func(session *session.Enterprise, local string) *Demand {
|
||||
return &Demand{Enterprise: session, local: local}
|
||||
return func(session *session.Enterprise, tenantID uint64) *Demand {
|
||||
return &Demand{Enterprise: session, tenantID: tenantID}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user