goweb/model/apis.go

12 lines
201 B
Go

package model
type Apis struct {
ID uint `json:"id" gorm:"primarykey"`
Path string `json:"path" `
Method string `json:"method" `
}
func (Apis) TableName() string {
return "t_api_route"
}