backend/internal/logic/ping/ping_logic.go

28 lines
439 B
Go
Raw Normal View History

2025-09-30 16:53:31 +00:00
package ping
import (
2025-11-09 08:49:34 +00:00
"backend/internal/svc"
2025-11-09 09:34:19 +00:00
"context"
2025-09-30 16:53:31 +00:00
"github.com/zeromicro/go-zero/core/logx"
)
type PingLogic struct {
logx.Logger
ctx context.Context
svcCtx *svc.ServiceContext
}
// 系統健康檢查
func NewPingLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PingLogic {
return &PingLogic{
Logger: logx.WithContext(ctx),
ctx: ctx,
svcCtx: svcCtx,
}
}
func (l *PingLogic) Ping() error {
return nil
}