Skip to content

Commit

Permalink
fix: 🐛 message req type use struct
Browse files Browse the repository at this point in the history
  • Loading branch information
Aimerny committed May 31, 2024
1 parent 48235a1 commit 9f7b8a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
12 changes: 6 additions & 6 deletions app/core/model/dto.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion app/example/example.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9f7b8a6

Please sign in to comment.