api 增加 GET PUT DELETE POST 四种可选声明方式

This commit is contained in:
pixel
2020-01-18 11:08:54 +08:00
parent baaf84bce0
commit 4960e269c0
5 changed files with 93 additions and 33 deletions

View File

@@ -13,6 +13,7 @@ type SysApi struct {
Path string `json:"path"`
Description string `json:"description"`
Group string `json:"group"`
Method string `json:"method" gorm:"default:'POST'"`
}
func (a *SysApi) CreateApi() (err error) {