|
@@ -90,23 +90,3 @@ func ListPlugins(c *gin.Context) {
|
|
|
c.JSON(http.StatusOK, service.ListPlugins(request.TenantID, request.Page, request.PageSize))
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
-func ListModels(c *gin.Context) {
|
|
|
- BindRequest(c, func(request struct {
|
|
|
- TenantID string `uri:"tenant_id" validate:"required"`
|
|
|
- Page int `form:"page" validate:"required,min=1"`
|
|
|
- PageSize int `form:"page_size" validate:"required,min=1,max=256"`
|
|
|
- }) {
|
|
|
- c.JSON(http.StatusOK, service.ListModels(request.TenantID, request.Page, request.PageSize))
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-func ListTools(c *gin.Context) {
|
|
|
- BindRequest(c, func(request struct {
|
|
|
- TenantID string `uri:"tenant_id" validate:"required"`
|
|
|
- Page int `form:"page" validate:"required,min=1"`
|
|
|
- PageSize int `form:"page_size" validate:"required,min=1,max=256"`
|
|
|
- }) {
|
|
|
- c.JSON(http.StatusOK, service.ListTools(request.TenantID, request.Page, request.PageSize))
|
|
|
- })
|
|
|
-}
|