提交 153d2939 authored 作者: mooncake9527's avatar mooncake9527

update

上级 61fb14e1
# rpc
调用局域网内其他服务
package rpc
import "errors"
const (
API_CREATE = "create"
API_DELETE_BY_ID = "deleteByID"
API_DELETE_BY_IDS = "deleteByIDs"
API_UPDATE_BY_ID = "updateByID"
API_UPDATE_BY_IDS = "updateByIDs"
API_GET_BY_ID = "getByID"
API_GET_BY_IDS = "getByIDs"
API_PAGE = "page"
)
var ErrApiNotExist = errors.New("theapi not exist")
package rpc
// Svc 服务
type Svc struct {
SrvAddr string `yaml:"srvAddr"`
Groups []Group `yaml:"groups"`
}
// Group api的组
type Group struct {
Name string `yaml:"name"`
Apis []Api `yaml:"apis"`
}
// Api 服务的某个接口
type Api struct {
Name string `yaml:"name"`
URI string `yaml:"uri"`
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论