添加普通根据功能获取模型列表
This commit is contained in:
parent
04270914b8
commit
2e2fbf60a0
|
|
@ -17,13 +17,17 @@ func SetUpFuncModelGroup(router *gin.Engine) {
|
|||
funcGroup.POST("/find_models_by_function", FindFuncModelByFunction)
|
||||
}
|
||||
|
||||
type FunctionModelIDs struct {
|
||||
ID int `json:"id" form:"id"`
|
||||
}
|
||||
|
||||
type FuncModelReq struct {
|
||||
ID int `json:"id" form:"id"`
|
||||
ModelID int `json:"model_id" form:"model_id"`
|
||||
Function string `json:"function" form:"function"`
|
||||
Name string `json:"name" form:"name"`
|
||||
Info string `json:"info" form:"info"`
|
||||
ModelIDS map[int]bool `json:"model_ids" form:"model_ids"`
|
||||
ModelIDS []FunctionModelIDs `json:"model_ids" form:"model_ids"`
|
||||
}
|
||||
|
||||
func CreateFuncModel(c *gin.Context) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue