// Code generated by goctl. DO NOT EDIT. // Source: app.proto package appclient import ( "context" "mingyang-admin-app-rpc/types/app" "github.com/zeromicro/go-zero/zrpc" "google.golang.org/grpc" ) type ( AuthInfoResp = app.AuthInfoResp AuthReq = app.AuthReq AuthToken = app.AuthToken BaseIDResp = app.BaseIDResp BaseMsg = app.BaseMsg BaseResp = app.BaseResp BaseUUIDResp = app.BaseUUIDResp ClaimStrings = app.ClaimStrings Empty = app.Empty IDReq = app.IDReq IDsReq = app.IDsReq LoginRequest = app.LoginRequest LoginResponse = app.LoginResponse LogoutUserRequest = app.LogoutUserRequest NumericDate = app.NumericDate PageInfoReq = app.PageInfoReq PageUserRequest = app.PageUserRequest PageUserResponse = app.PageUserResponse RegisterUserRequest = app.RegisterUserRequest RegisterUserResponse = app.RegisterUserResponse RegisteredClaims = app.RegisteredClaims UUIDReq = app.UUIDReq UUIDsReq = app.UUIDsReq UpdateUserAvatarReq = app.UpdateUserAvatarReq UpdateUserPcPasswordReq = app.UpdateUserPcPasswordReq UserInfo = app.UserInfo UserToken = app.UserToken VerifyCodeReq = app.VerifyCodeReq VerifyCodeResp = app.VerifyCodeResp App interface { // 校验token AuthToken(ctx context.Context, in *AuthReq, opts ...grpc.CallOption) (*AuthInfoResp, error) // 获取验证码 GetVerifyCode(ctx context.Context, in *VerifyCodeReq, opts ...grpc.CallOption) (*VerifyCodeResp, error) // 用户注册 RegisterUser(ctx context.Context, in *RegisterUserRequest, opts ...grpc.CallOption) (*RegisterUserResponse, error) // 用户登录 LoginUser(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) // 分页查询用户信息 ListUsers(ctx context.Context, in *PageUserRequest, opts ...grpc.CallOption) (*PageUserResponse, error) // 用户退出登录 LogoutUser(ctx context.Context, in *UserToken, opts ...grpc.CallOption) (*LogoutUserRequest, error) InitDatabase(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*BaseResp, error) // C端用户分页查询 QueryUserPagePc(ctx context.Context, in *PageUserRequest, opts ...grpc.CallOption) (*PageUserResponse, error) // C端用户详情 GetUserPc(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*UserInfo, error) // C端用户强制登出 ForceLogoutPc(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*BaseResp, error) // C端用户修改密码 UpdateUserPcPassword(ctx context.Context, in *UpdateUserPcPasswordReq, opts ...grpc.CallOption) (*BaseResp, error) // C端用户修改信息 UpdateUserPcInfo(ctx context.Context, in *UserInfo, opts ...grpc.CallOption) (*BaseResp, error) // C端用户修改头像 UpdateUserPcAvatar(ctx context.Context, in *UpdateUserAvatarReq, opts ...grpc.CallOption) (*BaseResp, error) // C端用户修改状态 UpdateUserPcStatus(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*BaseResp, error) } defaultApp struct { cli zrpc.Client } ) func NewApp(cli zrpc.Client) App { return &defaultApp{ cli: cli, } } // 校验token func (m *defaultApp) AuthToken(ctx context.Context, in *AuthReq, opts ...grpc.CallOption) (*AuthInfoResp, error) { client := app.NewAppClient(m.cli.Conn()) return client.AuthToken(ctx, in, opts...) } // 获取验证码 func (m *defaultApp) GetVerifyCode(ctx context.Context, in *VerifyCodeReq, opts ...grpc.CallOption) (*VerifyCodeResp, error) { client := app.NewAppClient(m.cli.Conn()) return client.GetVerifyCode(ctx, in, opts...) } // 用户注册 func (m *defaultApp) RegisterUser(ctx context.Context, in *RegisterUserRequest, opts ...grpc.CallOption) (*RegisterUserResponse, error) { client := app.NewAppClient(m.cli.Conn()) return client.RegisterUser(ctx, in, opts...) } // 用户登录 func (m *defaultApp) LoginUser(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) { client := app.NewAppClient(m.cli.Conn()) return client.LoginUser(ctx, in, opts...) } // 分页查询用户信息 func (m *defaultApp) ListUsers(ctx context.Context, in *PageUserRequest, opts ...grpc.CallOption) (*PageUserResponse, error) { client := app.NewAppClient(m.cli.Conn()) return client.ListUsers(ctx, in, opts...) } // 用户退出登录 func (m *defaultApp) LogoutUser(ctx context.Context, in *UserToken, opts ...grpc.CallOption) (*LogoutUserRequest, error) { client := app.NewAppClient(m.cli.Conn()) return client.LogoutUser(ctx, in, opts...) } func (m *defaultApp) InitDatabase(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*BaseResp, error) { client := app.NewAppClient(m.cli.Conn()) return client.InitDatabase(ctx, in, opts...) } // C端用户分页查询 func (m *defaultApp) QueryUserPagePc(ctx context.Context, in *PageUserRequest, opts ...grpc.CallOption) (*PageUserResponse, error) { client := app.NewAppClient(m.cli.Conn()) return client.QueryUserPagePc(ctx, in, opts...) } // C端用户详情 func (m *defaultApp) GetUserPc(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*UserInfo, error) { client := app.NewAppClient(m.cli.Conn()) return client.GetUserPc(ctx, in, opts...) } // C端用户强制登出 func (m *defaultApp) ForceLogoutPc(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*BaseResp, error) { client := app.NewAppClient(m.cli.Conn()) return client.ForceLogoutPc(ctx, in, opts...) } // C端用户修改密码 func (m *defaultApp) UpdateUserPcPassword(ctx context.Context, in *UpdateUserPcPasswordReq, opts ...grpc.CallOption) (*BaseResp, error) { client := app.NewAppClient(m.cli.Conn()) return client.UpdateUserPcPassword(ctx, in, opts...) } // C端用户修改信息 func (m *defaultApp) UpdateUserPcInfo(ctx context.Context, in *UserInfo, opts ...grpc.CallOption) (*BaseResp, error) { client := app.NewAppClient(m.cli.Conn()) return client.UpdateUserPcInfo(ctx, in, opts...) } // C端用户修改头像 func (m *defaultApp) UpdateUserPcAvatar(ctx context.Context, in *UpdateUserAvatarReq, opts ...grpc.CallOption) (*BaseResp, error) { client := app.NewAppClient(m.cli.Conn()) return client.UpdateUserPcAvatar(ctx, in, opts...) } // C端用户修改状态 func (m *defaultApp) UpdateUserPcStatus(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*BaseResp, error) { client := app.NewAppClient(m.cli.Conn()) return client.UpdateUserPcStatus(ctx, in, opts...) }