pastebin/gen/v1/autogen_router_pastebin_ser...

58 lines
1.5 KiB
Go

// Code generated by protoc-gen-coco. DO NOT EDIT.
// source: v1/pastebin_module.proto
// generate at: 2024-03-19 01:01:42
package genv1
import (
"gitter.top/coco/coco"
)
type AutoGenPastebinServiceImpl interface {
List(ctx *coco.Context, req *PastebinServiceListReq) (resp *PastebinServiceListResp, err error)
Add(ctx *coco.Context, req *PastebinServiceAddReq) (resp *PastebinServiceAddResp, err error)
Update(ctx *coco.Context, req *PastebinServiceUpdateReq) (resp *PastebinServiceUpdateResp, err error)
Get(ctx *coco.Context, req *PastebinServiceGetReq) (resp *PastebinServiceGetResp, err error)
Raw(ctx *coco.Context, req *PastebinServiceRawReq) (resp *PastebinServiceRawResp, err error)
}
type PastebinService_RouterMap struct{}
func (receiver *PastebinService_RouterMap) GetRouterMap() *coco.Routers {
return &coco.Routers{
BaseURL: "/v1/pastebin",
Apis: coco.RouterMap{
"List": {
API: "/list",
Method: "GET",
Author: "Young Xu",
Describe: "列表",
},
"Add": {
API: "/add",
Method: "PUT",
Author: "Young Xu",
Describe: "新建",
},
"Update": {
API: "/update",
Method: "POST",
Author: "Young Xu",
Describe: "更新",
},
"Get": {
API: "/get",
Method: "GET",
Author: "Young Xu",
Describe: "获取一条记录",
},
"Raw": {
API: "/raw",
Method: "GET",
Author: "Young Xu",
Describe: "获取原文内容",
},
},
}
}