2024-08-10 01:52:23 +00:00
|
|
|
package roleservicelogic
|
2024-08-05 09:11:43 +00:00
|
|
|
|
|
|
|
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 {
|
2024-08-05 09:11:43 +00:00
|
|
|
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{
|
2024-08-05 09:11:43 +00:00
|
|
|
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) {
|
2024-08-05 09:11:43 +00:00
|
|
|
// todo: add your logic here and delete this line
|
|
|
|
|
|
|
|
return &permission.OKResp{}, nil
|
|
|
|
}
|