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" }