32 lines
706 B
Go
32 lines
706 B
Go
package orderservicelogic
|
|
|
|
import (
|
|
"context"
|
|
|
|
"app-cloudep-order-server/gen_result/pb/tweeting"
|
|
"app-cloudep-order-server/internal/svc"
|
|
|
|
"github.com/zeromicro/go-zero/core/logx"
|
|
)
|
|
|
|
type CreateOrderLogic struct {
|
|
ctx context.Context
|
|
svcCtx *svc.ServiceContext
|
|
logx.Logger
|
|
}
|
|
|
|
func NewCreateOrderLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateOrderLogic {
|
|
return &CreateOrderLogic{
|
|
ctx: ctx,
|
|
svcCtx: svcCtx,
|
|
Logger: logx.WithContext(ctx),
|
|
}
|
|
}
|
|
|
|
// CreateOrder 建立訂單
|
|
func (l *CreateOrderLogic) CreateOrder(in *tweeting.CreateOrderReq) (*tweeting.CreateOrderResp, error) {
|
|
// todo: add your logic here and delete this line
|
|
|
|
return &tweeting.CreateOrderResp{}, nil
|
|
}
|