-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:
insert_item
accept json income
- Loading branch information
Showing
2 changed files
with
35 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package main | ||
|
||
type Item struct { | ||
Item_id string `json:"item_id" binding:"required"` | ||
Item_id_type string `json:"item_id_type" binding:"required,oneof=str int"` | ||
Item_status string `json:"item_status" binding:"required"` | ||
Item_status_type string `json:"item_status_type" binding:"required,oneof=None str int"` | ||
Payload string `json:"payload" binding:"required"` | ||
} |