feat(api): Add JSON tags to connectChannelThingRequest struct (#1930)

The connectChannelThingRequest struct in the things/api/http/requests.go file has been updated to include JSON tags for the ThingID and ChannelID fields. This change allows for proper serialization and deserialization of the struct when working with JSON data.

Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com>
This commit is contained in:
b1ackd0t 2023-10-17 13:43:48 +03:00 committed by GitHub
parent 09236e87a7
commit b4e7e859fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -366,8 +366,8 @@ func (req unassignUserGroupsRequest) validate() error {
type connectChannelThingRequest struct {
token string
ThingID string
ChannelID string
ThingID string `json:"thing_id,omitempty"`
ChannelID string `json:"channel_id,omitempty"`
}
func (req *connectChannelThingRequest) validate() error {