feat:完善项目
This commit is contained in:
@ -54,7 +54,8 @@ func (c *Instance) ToDo() {
|
||||
|
||||
}
|
||||
|
||||
func (c *Instance) Form() error {
|
||||
// Launch 发起工单申请
|
||||
func (c *Instance) Launch() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -3,12 +3,12 @@ package work
|
||||
import (
|
||||
model2 "ArmedPolice/app/common/model"
|
||||
"ArmedPolice/app/controller/basic"
|
||||
"ArmedPolice/app/handle"
|
||||
"ArmedPolice/app/model"
|
||||
"ArmedPolice/app/service"
|
||||
"ArmedPolice/serve/orm"
|
||||
"ArmedPolice/utils"
|
||||
"errors"
|
||||
"fmt"
|
||||
"gorm.io/gorm"
|
||||
"time"
|
||||
)
|
||||
@ -95,9 +95,12 @@ func (c *Person) Examine(id uint64, status int, remark string, isAssist int) err
|
||||
}
|
||||
// 推送通知
|
||||
go utils.TryCatch(func() {
|
||||
for _, u := range newNextScheduleInfo.Reviewer {
|
||||
for _, v := range newNextScheduleInfo.Reviewer {
|
||||
// Socket通知
|
||||
fmt.Println(u)
|
||||
service.HubMessage.EmitHandle(&service.HubEmit{
|
||||
ID: v,
|
||||
Msg: handle.NewWorkNotice("你有一条待办事项"),
|
||||
})
|
||||
}
|
||||
})
|
||||
FINISH:
|
||||
|
Reference in New Issue
Block a user