change layout
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
// Code generated by goctl. DO NOT EDIT.
|
||||
// goctl 1.10.2
|
||||
// Source: order.proto
|
||||
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"lone-services/rpc/order/pb"
|
||||
"lone-services/services/order/internal/logic"
|
||||
"lone-services/services/order/internal/svc"
|
||||
)
|
||||
|
||||
type OrderServer struct {
|
||||
svcCtx *svc.ServiceContext
|
||||
order.UnimplementedOrderServer
|
||||
}
|
||||
|
||||
func NewOrderServer(svcCtx *svc.ServiceContext) *OrderServer {
|
||||
return &OrderServer{
|
||||
svcCtx: svcCtx,
|
||||
}
|
||||
}
|
||||
|
||||
func (s *OrderServer) Items(ctx context.Context, in *order.ItemsRequest) (*order.Response, error) {
|
||||
l := logic.NewItemsLogic(ctx, s.svcCtx)
|
||||
return l.Items(in)
|
||||
}
|
||||
Reference in New Issue
Block a user