Documentation ¶
Index ¶
- func New(c *config.Config, hs *http.Server, gs *grpc.Server)
- type AgreementService
- func (s *AgreementService) AddContent(ctx context.Context, in *pb.AddContentRequest) (*pb.AddContentReply, error)
- func (s *AgreementService) AddScene(ctx context.Context, in *pb.AddSceneRequest) (*pb.AddSceneReply, error)
- func (s *AgreementService) DeleteContent(ctx context.Context, in *pb.DeleteContentRequest) (*empty.Empty, error)
- func (s *AgreementService) DeleteScene(ctx context.Context, in *pb.DeleteSceneRequest) (*empty.Empty, error)
- func (s *AgreementService) GetContent(ctx context.Context, in *pb.GetContentRequest) (*pb.Content, error)
- func (s *AgreementService) GetSceneByKeyword(ctx context.Context, in *pb.GetSceneByKeywordRequest) (*pb.Scene, error)
- func (s *AgreementService) PageContent(ctx context.Context, in *pb.PageContentRequest) (*pb.PageContentReply, error)
- func (s *AgreementService) PageScene(ctx context.Context, in *pb.PageSceneRequest) (*pb.PageSceneReply, error)
- func (s *AgreementService) UpdateContent(ctx context.Context, in *pb.UpdateContentRequest) (*empty.Empty, error)
- func (s *AgreementService) UpdateScene(ctx context.Context, in *pb.UpdateSceneRequest) (*empty.Empty, error)
- type AppService
- func (s *AppService) AddApp(ctx context.Context, in *pb.AddAppRequest) (*pb.AddAppReply, error)
- func (s *AppService) DeleteApp(ctx context.Context, in *pb.DeleteAppRequest) (*empty.Empty, error)
- func (s *AppService) GetAppByKeyword(ctx context.Context, in *pb.GetAppByKeywordRequest) (*pb.App, error)
- func (s *AppService) PageApp(ctx context.Context, in *pb.PageAppRequest) (*pb.PageAppReply, error)
- func (s *AppService) UpdateApp(ctx context.Context, in *pb.UpdateAppRequest) (*empty.Empty, error)
- type ChannelService
- func (s *ChannelService) AddChannel(ctx context.Context, in *pb.AddChannelRequest) (*pb.AddChannelReply, error)
- func (s *ChannelService) AllChannel(ctx context.Context, _ *empty.Empty) (*pb.AllChannelReply, error)
- func (s *ChannelService) DeleteChannel(ctx context.Context, in *pb.DeleteChannelRequest) (*empty.Empty, error)
- func (s *ChannelService) GetTypes(_ context.Context, _ *empty.Empty) (*pb.GetTypesReply, error)
- func (s *ChannelService) UpdateChannel(ctx context.Context, in *pb.UpdateChannelRequest) (*empty.Empty, error)
- type FieldService
- func (s *FieldService) AddField(ctx context.Context, in *pb.AddFieldRequest) (*pb.AddFieldReply, error)
- func (s *FieldService) AllFieldType(_ context.Context, _ *empty.Empty) (*pb.AllFieldTypeReply, error)
- func (s *FieldService) DeleteField(ctx context.Context, in *pb.DeleteFieldRequest) (*empty.Empty, error)
- func (s *FieldService) PageField(ctx context.Context, in *pb.PageFieldRequest) (*pb.PageFieldReply, error)
- func (s *FieldService) UpdateField(ctx context.Context, in *pb.UpdateFieldRequest) (*empty.Empty, error)
- type UserService
- func (s *UserService) AddUser(ctx context.Context, in *pb.AddUserRequest) (*pb.AddUserReply, error)
- func (s *UserService) AddUserApp(ctx context.Context, in *pb.AddUserAppRequest) (*empty.Empty, error)
- func (s *UserService) CaptchaLogin(ctx context.Context, in *pb.CaptchaLoginRequest) (*pb.LoginReply, error)
- func (s *UserService) CaptchaLoginEmail(ctx context.Context, in *pb.CaptchaLoginEmailRequest) (*pb.CaptchaReply, error)
- func (s *UserService) CaptchaRegister(ctx context.Context, in *pb.CaptchaRegisterRequest) (*pb.RegisterReply, error)
- func (s *UserService) CaptchaRegisterEmail(ctx context.Context, in *pb.CaptchaRegisterEmailRequest) (*pb.CaptchaReply, error)
- func (s *UserService) DeleteUser(ctx context.Context, in *pb.DeleteUserRequest) (*empty.Empty, error)
- func (s *UserService) DeleteUserApp(ctx context.Context, in *pb.DeleteUserAppRequest) (*empty.Empty, error)
- func (s *UserService) DisableUser(ctx context.Context, in *pb.DisableUserRequest) (*empty.Empty, error)
- func (s *UserService) EnableUser(ctx context.Context, in *pb.EnableUserRequest) (*empty.Empty, error)
- func (s *UserService) GetBaseUser(ctx context.Context, in *pb.GetBaseUserRequest) (*pb.BaseUser, error)
- func (s *UserService) GetCurrentUser(ctx context.Context, _ *empty.Empty) (*pb.User, error)
- func (s *UserService) GetSimpleUser(ctx context.Context, in *pb.GetSimpleUserRequest) (*pb.SimpleUser, error)
- func (s *UserService) GetUser(ctx context.Context, in *pb.GetUserRequest) (*pb.User, error)
- func (s *UserService) ImportUser(ctx context.Context, in *pb.ImportUserRequest) (*empty.Empty, error)
- func (s *UserService) OAuthBindByCaptcha(ctx context.Context, in *pb.OAuthBindByCaptchaRequest) (*pb.BindReply, error)
- func (s *UserService) OAuthBindByPassword(ctx context.Context, in *pb.OAuthBindByPasswordRequest) (*pb.BindReply, error)
- func (s *UserService) OAuthBindEmailCaptcha(ctx context.Context, in *pb.OAuthBindEmailCaptchaRequest) (*pb.CaptchaReply, error)
- func (s *UserService) OAuthBindImageCaptcha(ctx context.Context, _ *empty.Empty) (*pb.CaptchaReply, error)
- func (s *UserService) OAuthLogin(ctx context.Context, in *pb.OAuthLoginRequest) (*pb.LoginReply, error)
- func (s *UserService) OfflineUser(ctx context.Context, in *pb.OfflineUserRequest) (*empty.Empty, error)
- func (s *UserService) PageUser(ctx context.Context, in *pb.PageUserRequest) (*pb.PageUserReply, error)
- func (s *UserService) ParseToken(ctx context.Context, _ *empty.Empty) (*pb.ParseTokenReply, error)
- func (s *UserService) PasswordLogin(ctx context.Context, in *pb.PasswordLoginRequest) (*pb.LoginReply, error)
- func (s *UserService) PasswordLoginCaptcha(ctx context.Context, _ *empty.Empty) (*pb.CaptchaReply, error)
- func (s *UserService) PasswordRegister(ctx context.Context, in *pb.PasswordRegisterRequest) (*pb.RegisterReply, error)
- func (s *UserService) PasswordRegisterCaptcha(ctx context.Context, _ *empty.Empty) (*pb.CaptchaReply, error)
- func (s *UserService) PasswordRegisterCheck(ctx context.Context, in *pb.PasswordRegisterCheckRequest) (*pb.PasswordRegisterCheckReply, error)
- func (s *UserService) RefreshToken(ctx context.Context, _ *empty.Empty) (*pb.LoginReply, error)
- func (s *UserService) UpdateCurrentUser(ctx context.Context, in *pb.UpdateCurrentUserRequest) (*empty.Empty, error)
- func (s *UserService) UpdateUser(ctx context.Context, in *pb.UpdateUserRequest) (*empty.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AgreementService ¶ added in v1.0.3
type AgreementService struct { pb.UnimplementedServiceServer // contains filtered or unexported fields }
func NewAgreement ¶ added in v1.0.3
func NewAgreement(conf *config.Config) *AgreementService
func (*AgreementService) AddContent ¶ added in v1.0.3
func (s *AgreementService) AddContent(ctx context.Context, in *pb.AddContentRequest) (*pb.AddContentReply, error)
func (*AgreementService) AddScene ¶ added in v1.0.3
func (s *AgreementService) AddScene(ctx context.Context, in *pb.AddSceneRequest) (*pb.AddSceneReply, error)
func (*AgreementService) DeleteContent ¶ added in v1.0.3
func (s *AgreementService) DeleteContent(ctx context.Context, in *pb.DeleteContentRequest) (*empty.Empty, error)
func (*AgreementService) DeleteScene ¶ added in v1.0.3
func (s *AgreementService) DeleteScene(ctx context.Context, in *pb.DeleteSceneRequest) (*empty.Empty, error)
func (*AgreementService) GetContent ¶ added in v1.0.3
func (s *AgreementService) GetContent(ctx context.Context, in *pb.GetContentRequest) (*pb.Content, error)
func (*AgreementService) GetSceneByKeyword ¶ added in v1.0.3
func (s *AgreementService) GetSceneByKeyword(ctx context.Context, in *pb.GetSceneByKeywordRequest) (*pb.Scene, error)
func (*AgreementService) PageContent ¶ added in v1.0.3
func (s *AgreementService) PageContent(ctx context.Context, in *pb.PageContentRequest) (*pb.PageContentReply, error)
func (*AgreementService) PageScene ¶ added in v1.0.3
func (s *AgreementService) PageScene(ctx context.Context, in *pb.PageSceneRequest) (*pb.PageSceneReply, error)
func (*AgreementService) UpdateContent ¶ added in v1.0.3
func (s *AgreementService) UpdateContent(ctx context.Context, in *pb.UpdateContentRequest) (*empty.Empty, error)
func (*AgreementService) UpdateScene ¶ added in v1.0.3
func (s *AgreementService) UpdateScene(ctx context.Context, in *pb.UpdateSceneRequest) (*empty.Empty, error)
type AppService ¶ added in v1.0.3
type AppService struct { pb.UnimplementedServiceServer // contains filtered or unexported fields }
func NewApp ¶ added in v1.0.3
func NewApp(conf *config.Config) *AppService
func (*AppService) AddApp ¶ added in v1.0.3
func (s *AppService) AddApp(ctx context.Context, in *pb.AddAppRequest) (*pb.AddAppReply, error)
func (*AppService) DeleteApp ¶ added in v1.0.3
func (s *AppService) DeleteApp(ctx context.Context, in *pb.DeleteAppRequest) (*empty.Empty, error)
func (*AppService) GetAppByKeyword ¶ added in v1.0.3
func (s *AppService) GetAppByKeyword(ctx context.Context, in *pb.GetAppByKeywordRequest) (*pb.App, error)
func (*AppService) PageApp ¶ added in v1.0.3
func (s *AppService) PageApp(ctx context.Context, in *pb.PageAppRequest) (*pb.PageAppReply, error)
func (*AppService) UpdateApp ¶ added in v1.0.3
func (s *AppService) UpdateApp(ctx context.Context, in *pb.UpdateAppRequest) (*empty.Empty, error)
type ChannelService ¶ added in v1.0.3
type ChannelService struct { pb.UnimplementedServiceServer // contains filtered or unexported fields }
func NewChannel ¶ added in v1.0.3
func NewChannel(conf *config.Config) *ChannelService
func (*ChannelService) AddChannel ¶ added in v1.0.3
func (s *ChannelService) AddChannel(ctx context.Context, in *pb.AddChannelRequest) (*pb.AddChannelReply, error)
func (*ChannelService) AllChannel ¶ added in v1.0.3
func (s *ChannelService) AllChannel(ctx context.Context, _ *empty.Empty) (*pb.AllChannelReply, error)
func (*ChannelService) DeleteChannel ¶ added in v1.0.3
func (s *ChannelService) DeleteChannel(ctx context.Context, in *pb.DeleteChannelRequest) (*empty.Empty, error)
func (*ChannelService) GetTypes ¶ added in v1.0.3
func (s *ChannelService) GetTypes(_ context.Context, _ *empty.Empty) (*pb.GetTypesReply, error)
func (*ChannelService) UpdateChannel ¶ added in v1.0.3
func (s *ChannelService) UpdateChannel(ctx context.Context, in *pb.UpdateChannelRequest) (*empty.Empty, error)
type FieldService ¶ added in v1.0.3
type FieldService struct { pb.UnimplementedServiceServer // contains filtered or unexported fields }
func NewField ¶ added in v1.0.3
func NewField(conf *config.Config) *FieldService
func (*FieldService) AddField ¶ added in v1.0.3
func (s *FieldService) AddField(ctx context.Context, in *pb.AddFieldRequest) (*pb.AddFieldReply, error)
func (*FieldService) AllFieldType ¶ added in v1.0.3
func (s *FieldService) AllFieldType(_ context.Context, _ *empty.Empty) (*pb.AllFieldTypeReply, error)
func (*FieldService) DeleteField ¶ added in v1.0.3
func (s *FieldService) DeleteField(ctx context.Context, in *pb.DeleteFieldRequest) (*empty.Empty, error)
func (*FieldService) PageField ¶ added in v1.0.3
func (s *FieldService) PageField(ctx context.Context, in *pb.PageFieldRequest) (*pb.PageFieldReply, error)
func (*FieldService) UpdateField ¶ added in v1.0.3
func (s *FieldService) UpdateField(ctx context.Context, in *pb.UpdateFieldRequest) (*empty.Empty, error)
type UserService ¶ added in v1.0.3
type UserService struct { pb.UnimplementedServiceServer // contains filtered or unexported fields }
func NewUser ¶ added in v1.0.3
func NewUser(conf *config.Config) *UserService
func (*UserService) AddUser ¶ added in v1.0.3
func (s *UserService) AddUser(ctx context.Context, in *pb.AddUserRequest) (*pb.AddUserReply, error)
func (*UserService) AddUserApp ¶ added in v1.0.3
func (s *UserService) AddUserApp(ctx context.Context, in *pb.AddUserAppRequest) (*empty.Empty, error)
func (*UserService) CaptchaLogin ¶ added in v1.0.3
func (s *UserService) CaptchaLogin(ctx context.Context, in *pb.CaptchaLoginRequest) (*pb.LoginReply, error)
func (*UserService) CaptchaLoginEmail ¶ added in v1.0.3
func (s *UserService) CaptchaLoginEmail(ctx context.Context, in *pb.CaptchaLoginEmailRequest) (*pb.CaptchaReply, error)
func (*UserService) CaptchaRegister ¶ added in v1.0.3
func (s *UserService) CaptchaRegister(ctx context.Context, in *pb.CaptchaRegisterRequest) (*pb.RegisterReply, error)
func (*UserService) CaptchaRegisterEmail ¶ added in v1.0.3
func (s *UserService) CaptchaRegisterEmail(ctx context.Context, in *pb.CaptchaRegisterEmailRequest) (*pb.CaptchaReply, error)
func (*UserService) DeleteUser ¶ added in v1.0.3
func (s *UserService) DeleteUser(ctx context.Context, in *pb.DeleteUserRequest) (*empty.Empty, error)
func (*UserService) DeleteUserApp ¶ added in v1.0.3
func (s *UserService) DeleteUserApp(ctx context.Context, in *pb.DeleteUserAppRequest) (*empty.Empty, error)
func (*UserService) DisableUser ¶ added in v1.0.3
func (s *UserService) DisableUser(ctx context.Context, in *pb.DisableUserRequest) (*empty.Empty, error)
func (*UserService) EnableUser ¶ added in v1.0.3
func (s *UserService) EnableUser(ctx context.Context, in *pb.EnableUserRequest) (*empty.Empty, error)
func (*UserService) GetBaseUser ¶ added in v1.0.3
func (s *UserService) GetBaseUser(ctx context.Context, in *pb.GetBaseUserRequest) (*pb.BaseUser, error)
func (*UserService) GetCurrentUser ¶ added in v1.0.3
func (*UserService) GetSimpleUser ¶ added in v1.0.3
func (s *UserService) GetSimpleUser(ctx context.Context, in *pb.GetSimpleUserRequest) (*pb.SimpleUser, error)
func (*UserService) GetUser ¶ added in v1.0.3
func (s *UserService) GetUser(ctx context.Context, in *pb.GetUserRequest) (*pb.User, error)
func (*UserService) ImportUser ¶ added in v1.0.4
func (s *UserService) ImportUser(ctx context.Context, in *pb.ImportUserRequest) (*empty.Empty, error)
func (*UserService) OAuthBindByCaptcha ¶ added in v1.0.3
func (s *UserService) OAuthBindByCaptcha(ctx context.Context, in *pb.OAuthBindByCaptchaRequest) (*pb.BindReply, error)
func (*UserService) OAuthBindByPassword ¶ added in v1.0.3
func (s *UserService) OAuthBindByPassword(ctx context.Context, in *pb.OAuthBindByPasswordRequest) (*pb.BindReply, error)
func (*UserService) OAuthBindEmailCaptcha ¶ added in v1.0.5
func (s *UserService) OAuthBindEmailCaptcha(ctx context.Context, in *pb.OAuthBindEmailCaptchaRequest) (*pb.CaptchaReply, error)
func (*UserService) OAuthBindImageCaptcha ¶ added in v1.0.3
func (s *UserService) OAuthBindImageCaptcha(ctx context.Context, _ *empty.Empty) (*pb.CaptchaReply, error)
func (*UserService) OAuthLogin ¶ added in v1.0.3
func (s *UserService) OAuthLogin(ctx context.Context, in *pb.OAuthLoginRequest) (*pb.LoginReply, error)
func (*UserService) OfflineUser ¶ added in v1.0.3
func (s *UserService) OfflineUser(ctx context.Context, in *pb.OfflineUserRequest) (*empty.Empty, error)
func (*UserService) PageUser ¶ added in v1.0.3
func (s *UserService) PageUser(ctx context.Context, in *pb.PageUserRequest) (*pb.PageUserReply, error)
func (*UserService) ParseToken ¶ added in v1.0.3
func (s *UserService) ParseToken(ctx context.Context, _ *empty.Empty) (*pb.ParseTokenReply, error)
func (*UserService) PasswordLogin ¶ added in v1.0.3
func (s *UserService) PasswordLogin(ctx context.Context, in *pb.PasswordLoginRequest) (*pb.LoginReply, error)
func (*UserService) PasswordLoginCaptcha ¶ added in v1.0.3
func (s *UserService) PasswordLoginCaptcha(ctx context.Context, _ *empty.Empty) (*pb.CaptchaReply, error)
func (*UserService) PasswordRegister ¶ added in v1.0.3
func (s *UserService) PasswordRegister(ctx context.Context, in *pb.PasswordRegisterRequest) (*pb.RegisterReply, error)
func (*UserService) PasswordRegisterCaptcha ¶ added in v1.0.3
func (s *UserService) PasswordRegisterCaptcha(ctx context.Context, _ *empty.Empty) (*pb.CaptchaReply, error)
func (*UserService) PasswordRegisterCheck ¶ added in v1.0.3
func (s *UserService) PasswordRegisterCheck(ctx context.Context, in *pb.PasswordRegisterCheckRequest) (*pb.PasswordRegisterCheckReply, error)
func (*UserService) RefreshToken ¶ added in v1.0.3
func (s *UserService) RefreshToken(ctx context.Context, _ *empty.Empty) (*pb.LoginReply, error)
func (*UserService) UpdateCurrentUser ¶ added in v1.0.3
func (s *UserService) UpdateCurrentUser(ctx context.Context, in *pb.UpdateCurrentUserRequest) (*empty.Empty, error)
func (*UserService) UpdateUser ¶ added in v1.0.3
func (s *UserService) UpdateUser(ctx context.Context, in *pb.UpdateUserRequest) (*empty.Empty, error)
Click to show internal directories.
Click to hide internal directories.