Versions in this module Expand all Collapse all v1 v1.0.33 Oct 4, 2024 Changes in this version type Auth + func (r Auth) GetAuth(ctx kratosx.Context, id uint32) (*entity.Auth, error) v1.0.32 Sep 21, 2024 Changes in this version + type App struct + func NewApp() *App + func (r App) CreateApp(ctx kratosx.Context, app *entity.App) (uint32, error) + func (r App) DeleteApp(ctx kratosx.Context, id uint32) error + func (r App) GetApp(ctx kratosx.Context, id uint32) (*entity.App, error) + func (r App) GetAppByKeyword(ctx kratosx.Context, keyword string) (*entity.App, error) + func (r App) ListApp(ctx kratosx.Context, req *types.ListAppRequest) ([]*entity.App, uint32, error) + func (r App) UpdateApp(ctx kratosx.Context, app *entity.App) error + func (r App) UpdateAppStatus(ctx kratosx.Context, req *types.UpdateAppStatusRequest) error + type Auth struct + func NewAuth() *Auth + func (r Auth) BindOAuthByUid(ctx kratosx.Context, uid uint32, aid string) error + func (r Auth) CreateAuth(ctx kratosx.Context, auth *entity.Auth) (uint32, error) + func (r Auth) CreateOAuth(ctx kratosx.Context, oauth *entity.OAuth) (string, error) + func (r Auth) DeleteAuth(ctx kratosx.Context, userId uint32, appId uint32) error + func (r Auth) DeleteOAuth(ctx kratosx.Context, userId uint32, channelId uint32) error + func (r Auth) GetAuthByUA(ctx kratosx.Context, userId uint32, appId uint32) (*entity.Auth, error) + func (r Auth) GetOAuthByCA(ctx kratosx.Context, cid uint32, aid string) (*entity.OAuth, error) + func (r Auth) GetOAuthByUid(ctx kratosx.Context, uid string) (*entity.OAuth, error) + func (r Auth) IsBindOAuth(ctx kratosx.Context, cid uint32, aid string) bool + func (r Auth) ListAuth(ctx kratosx.Context, req *types.ListAuthRequest) ([]*entity.Auth, uint32, error) + func (r Auth) ListOAuth(ctx kratosx.Context, req *types.ListOAuthRequest) ([]*entity.OAuth, uint32, error) + func (r Auth) UpdateAuthStatus(ctx kratosx.Context, req *types.UpdateAuthStatusRequest) error + func (r Auth) UpdateOAuth(ctx kratosx.Context, oauth *entity.OAuth) error + func (r Auth) UpsertAuth(ctx kratosx.Context, auth *entity.Auth) error + type Channel struct + func NewChannel() *Channel + func (r Channel) CreateChannel(ctx kratosx.Context, channel *entity.Channel) (uint32, error) + func (r Channel) DeleteChannel(ctx kratosx.Context, id uint32) error + func (r Channel) GetChannel(ctx kratosx.Context, id uint32) (*entity.Channel, error) + func (r Channel) GetChannelByKeyword(ctx kratosx.Context, keyword string) (*entity.Channel, error) + func (r Channel) ListChannel(ctx kratosx.Context, req *types.ListChannelRequest) ([]*entity.Channel, uint32, error) + func (r Channel) UpdateChannel(ctx kratosx.Context, channel *entity.Channel) error + type Feedback struct + func NewFeedback() *Feedback + func (r Feedback) CreateFeedback(ctx kratosx.Context, feedback *entity.Feedback) (uint32, error) + func (r Feedback) CreateFeedbackCategory(ctx kratosx.Context, fc *entity.FeedbackCategory) (uint32, error) + func (r Feedback) DeleteFeedback(ctx kratosx.Context, id uint32) error + func (r Feedback) DeleteFeedbackCategory(ctx kratosx.Context, id uint32) error + func (r Feedback) GetFeedback(ctx kratosx.Context, id uint32) (*entity.Feedback, error) + func (r Feedback) GetFeedbackCategory(ctx kratosx.Context, id uint32) (*entity.FeedbackCategory, error) + func (r Feedback) IsExistFeedbackByMd5(ctx kratosx.Context, md5 string) bool + func (r Feedback) ListFeedback(ctx kratosx.Context, req *types.ListFeedbackRequest) ([]*entity.Feedback, uint32, error) + func (r Feedback) ListFeedbackCategory(ctx kratosx.Context, req *types.ListFeedbackCategoryRequest) ([]*entity.FeedbackCategory, uint32, error) + func (r Feedback) UpdateFeedback(ctx kratosx.Context, feedback *entity.Feedback) error + func (r Feedback) UpdateFeedbackCategory(ctx kratosx.Context, fc *entity.FeedbackCategory) error + type Field struct + func NewField() *Field + func (r Field) CreateField(ctx kratosx.Context, field *entity.Field) (uint32, error) + func (r Field) DeleteField(ctx kratosx.Context, id uint32) error + func (r Field) GetField(ctx kratosx.Context, id uint32) (*entity.Field, error) + func (r Field) ListField(ctx kratosx.Context, req *types.ListFieldRequest) ([]*entity.Field, uint32, error) + func (r Field) UpdateField(ctx kratosx.Context, field *entity.Field) error + type User struct + func NewUser() *User + func (r User) CreateUser(ctx kratosx.Context, user *entity.User) (uint32, error) + func (r User) DeleteTrashUser(ctx kratosx.Context, ids []uint32) (uint32, error) + func (r User) DeleteUser(ctx kratosx.Context, ids []uint32) (uint32, error) + func (r User) ExportUser(ctx kratosx.Context, req *types.ExportUserRequest) (string, error) + func (r User) GetTrashUser(ctx kratosx.Context, id uint32) (*entity.User, error) + func (r User) GetUser(ctx kratosx.Context, id uint32) (*entity.User, error) + func (r User) GetUserByEmail(ctx kratosx.Context, email string) (*entity.User, error) + func (r User) GetUserByPhone(ctx kratosx.Context, phone string) (*entity.User, error) + func (r User) GetUserByUsername(ctx kratosx.Context, username string) (*entity.User, error) + func (r User) HasUserByEmail(ctx kratosx.Context, email string) bool + func (r User) HasUserByUsername(ctx kratosx.Context, username string) bool + func (r User) ImportUser(ctx kratosx.Context, users []*entity.User) (uint32, error) + func (r User) ListTrashUser(ctx kratosx.Context, req *types.ListTrashUserRequest) ([]*entity.User, uint32, error) + func (r User) ListUser(ctx kratosx.Context, req *types.ListUserRequest) ([]*entity.User, uint32, error) + func (r User) RevertTrashUser(ctx kratosx.Context, id uint32) error + func (r User) UpdateUser(ctx kratosx.Context, user *entity.User) error + func (r User) UpdateUserStatus(ctx kratosx.Context, req *types.UpdateUserStatusRequest) error + type Userinfo struct + func NewUserinfo() *Userinfo + func (r Userinfo) CheckKeywords(ctx kratosx.Context, appId uint32, keywords []string) error + func (r Userinfo) CreateUserinfo(ctx kratosx.Context, userinfo *entity.Userinfo) (uint32, error) + func (r Userinfo) DeleteUserinfo(ctx kratosx.Context, id uint32) error + func (r Userinfo) GetUserinfo(ctx kratosx.Context, id uint32) (*entity.Userinfo, error) + func (r Userinfo) ListUserinfo(ctx kratosx.Context, req *types.ListUserinfoRequest) ([]*entity.Userinfo, uint32, error) + func (r Userinfo) UpdateUserinfo(ctx kratosx.Context, userinfo *entity.Userinfo) error