31 lines
666 B
Go
31 lines
666 B
Go
|
package blockchainservicelogic
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"blockchain/gen_result/pb/code.30cm.net/digimon/app-cloudep-blockchain"
|
||
|
"blockchain/internal/svc"
|
||
|
|
||
|
"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 *app_cloudep_blockchain.NoneReq) (*app_cloudep_blockchain.OKResp, error) {
|
||
|
// todo: add your logic here and delete this line
|
||
|
|
||
|
return &app_cloudep_blockchain.OKResp{}, nil
|
||
|
}
|