diff --git a/app/core/model/dto.go b/app/core/model/dto.go index a4134b9..c473b68 100644 --- a/app/core/model/dto.go +++ b/app/core/model/dto.go @@ -3,12 +3,12 @@ package model // ==== Message ==== type MessageCreateReq struct { - Type int `json:"type"` - TargetId string `json:"target_id"` - Content string `json:"content"` - Quote string `json:"quote"` - Nonce string `json:"nonce"` - TempTargetId string `json:"temp_target_id"` + Type EventType `json:"type"` + TargetId string `json:"target_id"` + Content string `json:"content"` + Quote string `json:"quote"` + Nonce string `json:"nonce"` + TempTargetId string `json:"temp_target_id"` } type MessageUpdateReq struct { diff --git a/app/example/example.go b/app/example/example.go index e520ba7..cded771 100644 --- a/app/example/example.go +++ b/app/example/example.go @@ -12,7 +12,6 @@ import ( func main() { common.InitLogger() - globalSession, err := session.CreateSession("Your kook-go bot token", true) if err != nil { log.Errorf("%s", err)