Skip to content

Commit 97c425c

Browse files
committed
fix: appid mapping for sending messages
1 parent d832b1a commit 97c425c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

model/message.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type MessageExternal struct {
3232
// read only: true
3333
// required: true
3434
// example: 5
35-
ApplicationID uint `json:"appid"`
35+
ApplicationID uint `form:"appid" query:"appid" json:"appid"`
3636
// The message. Markdown (excluding html) is allowed.
3737
//
3838
// required: true
@@ -74,7 +74,7 @@ type CreateMessage struct {
7474
// The application id that send this message. Always set when returned via the API.
7575
//
7676
// example: 5
77-
ApplicationID uint `json:"appid"`
77+
ApplicationID uint `form:"appid" query:"appid" json:"appid"`
7878
// The message. Markdown (excluding html) is allowed.
7979
//
8080
// required: true

0 commit comments

Comments
 (0)