32 lines
766 B
Go
32 lines
766 B
Go
package orderservicelogic
|
|
|
|
import (
|
|
"context"
|
|
|
|
"app-cloudep-trade-service/gen_result/pb/trade"
|
|
"app-cloudep-trade-service/internal/svc"
|
|
|
|
"github.com/zeromicro/go-zero/core/logx"
|
|
)
|
|
|
|
type OrderStatusTimeoutLogic struct {
|
|
ctx context.Context
|
|
svcCtx *svc.ServiceContext
|
|
logx.Logger
|
|
}
|
|
|
|
func NewOrderStatusTimeoutLogic(ctx context.Context, svcCtx *svc.ServiceContext) *OrderStatusTimeoutLogic {
|
|
return &OrderStatusTimeoutLogic{
|
|
ctx: ctx,
|
|
svcCtx: svcCtx,
|
|
Logger: logx.WithContext(ctx),
|
|
}
|
|
}
|
|
|
|
// OrderStatusTimeout 訂單超時任務/cron/order-status/timeout
|
|
func (l *OrderStatusTimeoutLogic) OrderStatusTimeout(in *trade.OrderStatusTimeoutReq) (*trade.OKResp, error) {
|
|
// todo: add your logic here and delete this line
|
|
|
|
return &trade.OKResp{}, nil
|
|
}
|