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:
parent
09236e87a7
commit
b4e7e859fb
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue