Files
lone-services/order/internal/logic/pinglogic.go
T
2026-08-06 13:43:52 +08:00

31 lines
539 B
Go

package logic
import (
"context"
"order/internal/svc"
"order/order"
"github.com/zeromicro/go-zero/core/logx"
)
type PingLogic struct {
ctx context.Context
svcCtx *svc.ServiceContext
logx.Logger
}
func NewPingLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PingLogic {
return &PingLogic{
ctx: ctx,
svcCtx: svcCtx,
Logger: logx.WithContext(ctx),
}
}
func (l *PingLogic) Ping(in *order.Request) (*order.Response, error) {
// todo: add your logic here and delete this line
return &order.Response{}, nil
}