Documentation ¶
Index ¶
- type RouteHandler
- func (e *RouteHandler) AddRoute(ctx context.Context, info *route.RouteInfo, rsp *route.Response) error
- func (e *RouteHandler) DeleteRoute(ctx context.Context, req *route.RouteId, rsp *route.Response) error
- func (e *RouteHandler) FindAllRoute(ctx context.Context, req *route.FindAll, rsp *route.AllRoute) error
- func (e *RouteHandler) FindRouteByID(ctx context.Context, req *route.RouteId, rsp *route.RouteInfo) error
- func (e *RouteHandler) UpdateRoute(ctx context.Context, req *route.RouteInfo, rsp *route.Response) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RouteHandler ¶
type RouteHandler struct { //注意这里的类型是 IRouteDataService 接口类型 RouteDataService service.IRouteDataService }
func (*RouteHandler) AddRoute ¶
func (e *RouteHandler) AddRoute(ctx context.Context, info *route.RouteInfo, rsp *route.Response) error
添加路由
func (*RouteHandler) DeleteRoute ¶
func (e *RouteHandler) DeleteRoute(ctx context.Context, req *route.RouteId, rsp *route.Response) error
删除route
func (*RouteHandler) FindAllRoute ¶
func (*RouteHandler) FindRouteByID ¶
func (e *RouteHandler) FindRouteByID(ctx context.Context, req *route.RouteId, rsp *route.RouteInfo) error
根据ID查询route信息
func (*RouteHandler) UpdateRoute ¶
func (e *RouteHandler) UpdateRoute(ctx context.Context, req *route.RouteInfo, rsp *route.Response) error
更新route
Click to show internal directories.
Click to hide internal directories.