guard/internal/logic/roleservice/ping_logic.go

31 lines
597 B
Go
Raw Normal View History

2024-08-10 01:52:23 +00:00
package roleservicelogic
import (
"context"
"ark-permission/gen_result/pb/permission"
"ark-permission/internal/svc"
"github.com/zeromicro/go-zero/core/logx"
)
2024-08-10 01:52:23 +00:00
type PingLogic struct {
ctx context.Context
svcCtx *svc.ServiceContext
logx.Logger
}
2024-08-10 01:52:23 +00:00
func NewPingLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PingLogic {
return &PingLogic{
ctx: ctx,
svcCtx: svcCtx,
Logger: logx.WithContext(ctx),
}
}
2024-08-10 01:52:23 +00:00
func (l *PingLogic) Ping(in *permission.OKResp) (*permission.OKResp, error) {
// todo: add your logic here and delete this line
return &permission.OKResp{}, nil
}