1 Star 0 Fork 0

gaogaoss/go-swagger

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
todo_list_client.go 1.23 KB
一键复制 编辑 原始数据 按行查看 历史
gaogao 提交于 2024-07-30 09:49 . first commit
package client
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"github.com/go-openapi/runtime"
httptransport "github.com/go-openapi/runtime/client"
strfmt "github.com/go-openapi/strfmt"
"github.com/go-swagger/go-swagger/examples/todo-list/client/todos"
)
// Default todo list HTTP client.
var Default = NewHTTPClient(nil)
// NewHTTPClient creates a new todo list HTTP client.
func NewHTTPClient(formats strfmt.Registry) *TodoList {
if formats == nil {
formats = strfmt.Default
}
transport := httptransport.New("localhost", "/", []string{"http", "https"})
return New(transport, formats)
}
// New creates a new todo list client
func New(transport runtime.ClientTransport, formats strfmt.Registry) *TodoList {
cli := new(TodoList)
cli.Transport = transport
cli.Todos = todos.New(transport, formats)
return cli
}
// TodoList is a client for todo list
type TodoList struct {
Todos *todos.Client
Transport runtime.ClientTransport
}
// SetTransport changes the transport on the client and all its subresources
func (c *TodoList) SetTransport(transport runtime.ClientTransport) {
c.Transport = transport
c.Todos.SetTransport(transport)
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/gaogaoss/go-swagger.git
git@gitee.com:gaogaoss/go-swagger.git
gaogaoss
go-swagger
go-swagger
da1ca328b83f

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385