package models type Parameter struct { BaseModel EndpointID string `json:"endpoint_id" gorm:"column:endpoint_id;type:varchar(255);not null"` Name string `json:"name" gorm:"column:name;type:varchar(255);not null"` Type string `json:"type" gorm:"column:type;type:varchar(50);not null"` // query, header, body ParamType string `json:"param_type" gorm:"column:param_type;type:varchar(50)"` // string, number, boolean Required bool `json:"required" gorm:"column:required;type:boolean;default:false"` Description string `json:"description" gorm:"column:description;type:text"` Example string `json:"example" gorm:"column:example;type:text"` Value string `json:"value" gorm:"column:value;type:text"` // 调试值 }