29 lines
580 B
Go
29 lines
580 B
Go
// Code generated by goctl. DO NOT EDIT.
|
|
// Source: pay.proto
|
|
|
|
package server
|
|
|
|
import (
|
|
"context"
|
|
|
|
"mingyang-admin-pay/rpc/internal/logic/base"
|
|
"mingyang-admin-pay/rpc/internal/svc"
|
|
"mingyang-admin-pay/rpc/types/pay"
|
|
)
|
|
|
|
type PayServer struct {
|
|
svcCtx *svc.ServiceContext
|
|
pay.UnimplementedPayServer
|
|
}
|
|
|
|
func NewPayServer(svcCtx *svc.ServiceContext) *PayServer {
|
|
return &PayServer{
|
|
svcCtx: svcCtx,
|
|
}
|
|
}
|
|
|
|
func (s *PayServer) InitDatabase(ctx context.Context, in *pay.Empty) (*pay.BaseResp, error) {
|
|
l := base.NewInitDatabaseLogic(ctx, s.svcCtx)
|
|
return l.InitDatabase(in)
|
|
}
|