SYMBOL INDEX (130 symbols across 27 files) FILE: datasql/dtm-gozero-order.sql type `order` (line 24) | CREATE TABLE `order` ( FILE: datasql/dtm-gozero-stock.sql type `stock` (line 24) | CREATE TABLE `stock` ( FILE: order-api/internal/config/config.go type Config (line 8) | type Config struct FILE: order-api/internal/handler/createHandler.go function createHandler (line 12) | func createHandler(ctx *svc.ServiceContext) http.HandlerFunc { FILE: order-api/internal/handler/routes.go function RegisterHandlers (line 12) | func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) { FILE: order-api/internal/logic/createLogic.go type CreateLogic (line 23) | type CreateLogic struct method Create (line 37) | func (l *CreateLogic) Create(req types.QuickCreateReq, r *http.Request... function NewCreateLogic (line 29) | func NewCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) Cre... FILE: order-api/internal/svc/serviceContext.go type ServiceContext (line 10) | type ServiceContext struct function NewServiceContext (line 17) | func NewServiceContext(c config.Config) *ServiceContext { FILE: order-api/internal/types/types.go type QuickCreateReq (line 4) | type QuickCreateReq struct type QuickCreateResp (line 10) | type QuickCreateResp struct FILE: order-api/order.go function main (line 21) | func main() { FILE: order-srv/internal/config/config.go type Config (line 7) | type Config struct FILE: order-srv/internal/logic/createLogic.go type CreateLogic (line 19) | type CreateLogic struct method Create (line 33) | func (l *CreateLogic) Create(in *pb.CreateReq) (*pb.CreateResp, error) { function NewCreateLogic (line 25) | func NewCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *Cr... FILE: order-srv/internal/logic/createRollbackLogic.go type CreateRollbackLogic (line 20) | type CreateRollbackLogic struct method CreateRollback (line 34) | func (l *CreateRollbackLogic) CreateRollback(in *pb.CreateReq) (*pb.Cr... function NewCreateRollbackLogic (line 26) | func NewCreateRollbackLogic(ctx context.Context, svcCtx *svc.ServiceCont... FILE: order-srv/internal/model/ordermodel.go type OrderModel (line 22) | type OrderModel interface type defaultOrderModel (line 28) | type defaultOrderModel struct method FindLastOneByUserIdGoodsId (line 49) | func (m *defaultOrderModel) FindLastOneByUserIdGoodsId(userId, goodsId... method Insert (line 63) | func (m *defaultOrderModel) Insert(tx *sql.Tx, data *Order) (sql.Resul... method Update (line 68) | func (m *defaultOrderModel) Update(tx *sql.Tx, data *Order) error { type Order (line 33) | type Order struct function NewOrderModel (line 42) | func NewOrderModel(conn sqlx.SqlConn) OrderModel { FILE: order-srv/internal/server/orderServer.go type OrderServer (line 14) | type OrderServer struct method Create (line 24) | func (s *OrderServer) Create(ctx context.Context, in *pb.CreateReq) (*... method CreateRollback (line 29) | func (s *OrderServer) CreateRollback(ctx context.Context, in *pb.Creat... function NewOrderServer (line 18) | func NewOrderServer(svcCtx *svc.ServiceContext) *OrderServer { FILE: order-srv/internal/svc/serviceContext.go type ServiceContext (line 9) | type ServiceContext struct function NewServiceContext (line 14) | func NewServiceContext(c config.Config) *ServiceContext { FILE: order-srv/order.go function main (line 21) | func main() { FILE: order-srv/order/order.go type Order (line 19) | type Order interface type defaultOrder (line 24) | type defaultOrder struct method Create (line 35) | func (m *defaultOrder) Create(ctx context.Context, in *CreateReq, opts... method CreateRollback (line 40) | func (m *defaultOrder) CreateRollback(ctx context.Context, in *CreateR... function NewOrder (line 29) | func NewOrder(cli zrpc.Client) Order { FILE: order-srv/pb/order.pb.go constant _ (line 22) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 24) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type CreateReq (line 27) | type CreateReq struct method Reset (line 37) | func (x *CreateReq) Reset() { method String (line 46) | func (x *CreateReq) String() string { method ProtoMessage (line 50) | func (*CreateReq) ProtoMessage() {} method ProtoReflect (line 52) | func (x *CreateReq) ProtoReflect() protoreflect.Message { method Descriptor (line 65) | func (*CreateReq) Descriptor() ([]byte, []int) { method GetGoodsId (line 69) | func (x *CreateReq) GetGoodsId() int64 { method GetUserId (line 76) | func (x *CreateReq) GetUserId() int64 { method GetNum (line 83) | func (x *CreateReq) GetNum() int64 { type CreateResp (line 90) | type CreateResp struct method Reset (line 96) | func (x *CreateResp) Reset() { method String (line 105) | func (x *CreateResp) String() string { method ProtoMessage (line 109) | func (*CreateResp) ProtoMessage() {} method ProtoReflect (line 111) | func (x *CreateResp) ProtoReflect() protoreflect.Message { method Descriptor (line 124) | func (*CreateResp) Descriptor() ([]byte, []int) { function file_order_proto_rawDescGZIP (line 153) | func file_order_proto_rawDescGZIP() []byte { function init (line 177) | func init() { file_order_proto_init() } function file_order_proto_init (line 178) | func file_order_proto_init() { constant _ (line 234) | _ = grpc.SupportPackageIsVersion6 type OrderClient (line 239) | type OrderClient interface type orderClient (line 244) | type orderClient struct method Create (line 252) | func (c *orderClient) Create(ctx context.Context, in *CreateReq, opts ... method CreateRollback (line 261) | func (c *orderClient) CreateRollback(ctx context.Context, in *CreateRe... function NewOrderClient (line 248) | func NewOrderClient(cc grpc.ClientConnInterface) OrderClient { type OrderServer (line 271) | type OrderServer interface type UnimplementedOrderServer (line 277) | type UnimplementedOrderServer struct method Create (line 280) | func (*UnimplementedOrderServer) Create(context.Context, *CreateReq) (... method CreateRollback (line 283) | func (*UnimplementedOrderServer) CreateRollback(context.Context, *Crea... function RegisterOrderServer (line 287) | func RegisterOrderServer(s *grpc.Server, srv OrderServer) { function _Order_Create_Handler (line 291) | func _Order_Create_Handler(srv interface{}, ctx context.Context, dec fun... function _Order_CreateRollback_Handler (line 309) | func _Order_CreateRollback_Handler(srv interface{}, ctx context.Context,... FILE: stock-srv/internal/config/config.go type Config (line 7) | type Config struct FILE: stock-srv/internal/logic/deductLogic.go type DeductLogic (line 20) | type DeductLogic struct method Deduct (line 34) | func (l *DeductLogic) Deduct(in *pb.DecuctReq) (*pb.DeductResp, error) { function NewDeductLogic (line 26) | func NewDeductLogic(ctx context.Context, svcCtx *svc.ServiceContext) *De... FILE: stock-srv/internal/logic/deductRollbackLogic.go type DeductRollbackLogic (line 19) | type DeductRollbackLogic struct method DeductRollback (line 33) | func (l *DeductRollbackLogic) DeductRollback(in *pb.DecuctReq) (*pb.De... function NewDeductRollbackLogic (line 25) | func NewDeductRollbackLogic(ctx context.Context, svcCtx *svc.ServiceCont... FILE: stock-srv/internal/model/stockmodel.go type StockModel (line 18) | type StockModel interface type defaultStockModel (line 24) | type defaultStockModel struct method FindOneByGoodsId (line 43) | func (m *defaultStockModel) FindOneByGoodsId(goodsId int64) (*Stock, e... method DecuctStock (line 57) | func (m *defaultStockModel) DecuctStock(tx *sql.Tx, goodsId, num int64... method AddStock (line 63) | func (m *defaultStockModel) AddStock(tx *sql.Tx, goodsId, num int64) e... type Stock (line 29) | type Stock struct function NewStockModel (line 36) | func NewStockModel(conn sqlx.SqlConn) StockModel { FILE: stock-srv/internal/server/stockServer.go type StockServer (line 14) | type StockServer struct method Deduct (line 24) | func (s *StockServer) Deduct(ctx context.Context, in *pb.DecuctReq) (*... method DeductRollback (line 29) | func (s *StockServer) DeductRollback(ctx context.Context, in *pb.Decuc... function NewStockServer (line 18) | func NewStockServer(svcCtx *svc.ServiceContext) *StockServer { FILE: stock-srv/internal/svc/serviceContext.go type ServiceContext (line 9) | type ServiceContext struct function NewServiceContext (line 14) | func NewServiceContext(c config.Config) *ServiceContext { FILE: stock-srv/pb/stock.pb.go constant _ (line 22) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 24) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type DecuctReq (line 27) | type DecuctReq struct method Reset (line 36) | func (x *DecuctReq) Reset() { method String (line 45) | func (x *DecuctReq) String() string { method ProtoMessage (line 49) | func (*DecuctReq) ProtoMessage() {} method ProtoReflect (line 51) | func (x *DecuctReq) ProtoReflect() protoreflect.Message { method Descriptor (line 64) | func (*DecuctReq) Descriptor() ([]byte, []int) { method GetGoodsId (line 68) | func (x *DecuctReq) GetGoodsId() int64 { method GetNum (line 75) | func (x *DecuctReq) GetNum() int64 { type DeductResp (line 82) | type DeductResp struct method Reset (line 88) | func (x *DeductResp) Reset() { method String (line 97) | func (x *DeductResp) String() string { method ProtoMessage (line 101) | func (*DeductResp) ProtoMessage() {} method ProtoReflect (line 103) | func (x *DeductResp) ProtoReflect() protoreflect.Message { method Descriptor (line 116) | func (*DeductResp) Descriptor() ([]byte, []int) { function file_stock_proto_rawDescGZIP (line 143) | func file_stock_proto_rawDescGZIP() []byte { function init (line 167) | func init() { file_stock_proto_init() } function file_stock_proto_init (line 168) | func file_stock_proto_init() { constant _ (line 224) | _ = grpc.SupportPackageIsVersion6 type StockClient (line 229) | type StockClient interface type stockClient (line 234) | type stockClient struct method Deduct (line 242) | func (c *stockClient) Deduct(ctx context.Context, in *DecuctReq, opts ... method DeductRollback (line 251) | func (c *stockClient) DeductRollback(ctx context.Context, in *DecuctRe... function NewStockClient (line 238) | func NewStockClient(cc grpc.ClientConnInterface) StockClient { type StockServer (line 261) | type StockServer interface type UnimplementedStockServer (line 267) | type UnimplementedStockServer struct method Deduct (line 270) | func (*UnimplementedStockServer) Deduct(context.Context, *DecuctReq) (... method DeductRollback (line 273) | func (*UnimplementedStockServer) DeductRollback(context.Context, *Decu... function RegisterStockServer (line 277) | func RegisterStockServer(s *grpc.Server, srv StockServer) { function _Stock_Deduct_Handler (line 281) | func _Stock_Deduct_Handler(srv interface{}, ctx context.Context, dec fun... function _Stock_DeductRollback_Handler (line 299) | func _Stock_DeductRollback_Handler(srv interface{}, ctx context.Context,... FILE: stock-srv/stock.go function main (line 21) | func main() { FILE: stock-srv/stock/stock.go type Stock (line 19) | type Stock interface type defaultStock (line 24) | type defaultStock struct method Deduct (line 35) | func (m *defaultStock) Deduct(ctx context.Context, in *DecuctReq, opts... method DeductRollback (line 40) | func (m *defaultStock) DeductRollback(ctx context.Context, in *DecuctR... function NewStock (line 29) | func NewStock(cli zrpc.Client) Stock {