[ Service ] [ Executor ] fix bugs
This commit is contained in:
@@ -31,13 +31,13 @@ type OctopusMsgBuilder interface {
|
||||
}
|
||||
|
||||
type OctopusMessage struct {
|
||||
UUID string `json:"uuid"`
|
||||
InitTime string `json:"init_time" format:"2023-03-21 16:38:30"`
|
||||
Type string `json:"type"`
|
||||
Content interface{} `json:"content"`
|
||||
Result interface{} `json:"result"`
|
||||
ResultCode string `json:"resultCode"`
|
||||
ACTime string `json:"ac_time" format:"2023-03-21 16:38:30"`
|
||||
UUID string `json:"uuid"`
|
||||
InitTime string `json:"init_time" format:"2023-03-21 16:38:30"`
|
||||
OctopusMessageType string `json:"octopusMessageType"`
|
||||
Content interface{} `json:"content"`
|
||||
ACTime string `json:"ac_time" format:"2023-03-21 16:38:30"`
|
||||
Result interface{} `json:"result"`
|
||||
ResultCode string `json:"resultCode"`
|
||||
}
|
||||
|
||||
func (om *OctopusMessage) Handle() {
|
||||
@@ -75,18 +75,18 @@ func (om *OctopusMessage) Build(omType string, content interface{}) *OctopusMess
|
||||
}
|
||||
|
||||
return &OctopusMessage{
|
||||
UUID: curTimeString,
|
||||
InitTime: curTimeString,
|
||||
Type: omType,
|
||||
Content: string(bytes),
|
||||
Result: nil,
|
||||
ACTime: curTimeString,
|
||||
UUID: curTimeString,
|
||||
InitTime: curTimeString,
|
||||
OctopusMessageType: omType,
|
||||
Content: string(bytes),
|
||||
Result: nil,
|
||||
ACTime: curTimeString,
|
||||
}
|
||||
}
|
||||
|
||||
func doHandleOctopusMessage(octopusMessage *OctopusMessage) {
|
||||
|
||||
switch octopusMessage.Type {
|
||||
switch octopusMessage.OctopusMessageType {
|
||||
case g.InitOmType:
|
||||
go func() {}()
|
||||
case g.ExecOmType:
|
||||
|
||||
Reference in New Issue
Block a user