pastebin/api_services/v1/autogen_router_pastebin_service.go

56 lines
1.4 KiB
Go
Raw Normal View History

2023-09-30 13:47:59 +00:00
// Code generated by protoc-gen-coco. DO NOT EDIT.
// source: api_services/v1/pastebin_module.proto
2023-10-15 13:30:40 +00:00
// generate at: 2023-10-15 21:21:24
2023-09-30 13:47:59 +00:00
package api_servicesv1
import (
2023-10-15 13:30:40 +00:00
"gitter.top/coco/coco"
2023-09-30 13:47:59 +00:00
)
type AutoGenPastebinServiceImpl interface {
2023-10-15 13:30:40 +00:00
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)
2023-09-30 13:47:59 +00:00
}
2023-10-15 13:30:40 +00:00
func (receiver *PastebinService) GetRouterMap() *coco.Routers {
return &coco.Routers{
2023-09-30 13:47:59 +00:00
BaseURL: "/v1/pastebin",
2023-10-15 13:30:40 +00:00
Apis: coco.RouterMap{
2023-09-30 13:47:59 +00:00
"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: "获取一条记录",
},
2023-10-15 13:30:40 +00:00
"Raw": {
API: "/raw",
Method: "GET",
Author: "Young Xu",
Describe: "获取原文内容",
},
2023-09-30 13:47:59 +00:00
},
}
2023-10-15 13:30:40 +00:00
}