feat:完善项目
This commit is contained in:
@ -3,17 +3,15 @@ package sys
|
||||
import (
|
||||
"SciencesServer/app/api/website/model"
|
||||
model2 "SciencesServer/app/common/model"
|
||||
"SciencesServer/app/session"
|
||||
"errors"
|
||||
)
|
||||
|
||||
// Agreement 协议信息
|
||||
type Agreement struct {
|
||||
*session.Enterprise
|
||||
tenantID uint64
|
||||
}
|
||||
|
||||
type AgreementHandle func(session *session.Enterprise, tenantID uint64) *Agreement
|
||||
type AgreementHandle func(tenantID uint64) *Agreement
|
||||
|
||||
type (
|
||||
// AgreementInfo 协议信息
|
||||
@ -68,10 +66,9 @@ func (c *Agreement) Detail(id uint64) (*AgreementDetailInfo, error) {
|
||||
}
|
||||
|
||||
func NewAgreement() AgreementHandle {
|
||||
return func(session *session.Enterprise, tenantID uint64) *Agreement {
|
||||
return func(tenantID uint64) *Agreement {
|
||||
return &Agreement{
|
||||
Enterprise: session,
|
||||
tenantID: tenantID,
|
||||
tenantID: tenantID,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user