Documentation ¶
Index ¶
- Constants
- func Run()
- type Account
- type Server
- func (s *Server) AccountAdd(ctx context.Context, in *pb.AccountBase) (out *pb.AccountBase, outerr error)
- func (s *Server) AccountQueryOne(ctx context.Context, in *pb.AccountID) (out *pb.AccountBase, outerr error)
- func (s *Server) AccountUpdate(ctx context.Context, in *pb.AccountUpdateReq) (out *empty.Empty, outerr error)
Constants ¶
View Source
const (
SN = "srv-account" // 定义services名称
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct{}
func (*Server) AccountAdd ¶
func (s *Server) AccountAdd(ctx context.Context, in *pb.AccountBase) (out *pb.AccountBase, outerr error)
func (*Server) AccountQueryOne ¶
func (s *Server) AccountQueryOne(ctx context.Context, in *pb.AccountID) (out *pb.AccountBase, outerr error)
查询一个
func (*Server) AccountUpdate ¶
Click to show internal directories.
Click to hide internal directories.