This commit is contained in:
newbie 2024-02-22 21:19:55 +08:00
parent 6ad2dee781
commit e4c8ff2f16

View File

@ -24,5 +24,20 @@
"body": [ "body": [
"ctx := context.Background()" "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",
"}"
]
} }
} }