feat:完善项目管理
This commit is contained in:
@ -1,13 +1,33 @@
|
||||
package controller
|
||||
|
||||
type Docking struct{}
|
||||
import (
|
||||
"SciencesServer/app/api/website/model"
|
||||
model2 "SciencesServer/app/common/model"
|
||||
"SciencesServer/app/session"
|
||||
)
|
||||
|
||||
type DockingHandle func()
|
||||
type Docking struct {
|
||||
*session.Enterprise
|
||||
local string
|
||||
}
|
||||
|
||||
func (c *Docking) Message() {
|
||||
type DockingHandle func(session *session.Enterprise, local string) *Docking
|
||||
|
||||
// Form 联系客服对接
|
||||
func (c *Docking) Form() error {
|
||||
mServiceDocking := model.NewServiceDocking()
|
||||
|
||||
if c.Enterprise != nil {
|
||||
mServiceDocking.UID = c.UID
|
||||
}
|
||||
return model2.Create(mServiceDocking.ServiceDocking)
|
||||
}
|
||||
|
||||
func NewDocking() DockingHandle {
|
||||
return nil
|
||||
return func(session *session.Enterprise, local string) *Docking {
|
||||
return &Docking{
|
||||
Enterprise: session,
|
||||
local: local,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user