update
This commit is contained in:
parent
6ad2dee781
commit
e4c8ff2f16
@ -24,5 +24,20 @@
|
||||
"body": [
|
||||
"ctx := context.Background()"
|
||||
]
|
||||
},
|
||||
"cok": {
|
||||
"prefix": "cok",
|
||||
"body": [
|
||||
"c.JSON(http.StatusOK, vo.Success($1))"
|
||||
]
|
||||
},
|
||||
"cbad": {
|
||||
"prefix": "cbad",
|
||||
"body": [
|
||||
"if err != nil {",
|
||||
" c.JSON(http.StatusBadRequest, vo.Fail(err))",
|
||||
" return",
|
||||
"}"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user