// Code generated by goctl. DO NOT EDIT. // Source: app.proto package app import ( "context" "mingyang-admin-app-rpc/types/app" "github.com/zeromicro/go-zero/zrpc" "google.golang.org/grpc" ) type ( AuthInfoResp = pc.AuthInfoResp AuthReq = pc.AuthReq AuthToken = pc.AuthToken BaseIDResp = pc.BaseIDResp BaseMsg = pc.BaseMsg BaseResp = pc.BaseResp BaseUUIDResp = pc.BaseUUIDResp ClaimStrings = pc.ClaimStrings Empty = pc.Empty IDReq = pc.IDReq IDsReq = pc.IDsReq LoginRequest = pc.LoginRequest LoginResponse = pc.LoginResponse LogoutUserRequest = pc.LogoutUserRequest NumericDate = pc.NumericDate PageInfoReq = pc.PageInfoReq PageUserRequest = pc.PageUserRequest PageUserResponse = pc.PageUserResponse RegisterUserRequest = pc.RegisterUserRequest RegisterUserResponse = pc.RegisterUserResponse RegisteredClaims = pc.RegisteredClaims UUIDReq = pc.UUIDReq UUIDsReq = pc.UUIDsReq UpdateUserAvatarReq = pc.UpdateUserAvatarReq UpdateUserPcPasswordReq = pc.UpdateUserPcPasswordReq UserInfo = pc.UserInfo UserToken = pc.UserToken VerifyCodeReq = pc.VerifyCodeReq VerifyCodeResp = pc.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 := pc.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 := pc.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 := pc.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 := pc.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 := pc.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 := pc.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 := pc.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 := pc.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 := pc.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 := pc.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 := pc.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 := pc.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 := pc.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 := pc.NewAppClient(m.cli.Conn()) return client.UpdateUserPcStatus(ctx, in, opts...) }