Documentation ¶
Index ¶
- type 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
- 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) GetAuth(ctx kratosx.Context, id uint32) (*entity.Auth, 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
- 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
- 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
- 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
- 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
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { }
func (App) GetAppByKeyword ¶
GetAppByKeyword 获取指定数据
func (App) UpdateAppStatus ¶
UpdateAppStatus 更新数据状态
type Auth ¶
type Auth struct { }
func (Auth) BindOAuthByUid ¶
func (Auth) CreateAuth ¶
CreateAuth 创建数据
func (Auth) CreateOAuth ¶
CreateOAuth 创建数据
func (Auth) DeleteAuth ¶
DeleteAuth 删除数据
func (Auth) DeleteOAuth ¶
DeleteOAuth 删除数据
func (Auth) GetAuthByUA ¶
GetAuthByUA 获取指定数据
func (Auth) GetOAuthByCA ¶
func (Auth) GetOAuthByUid ¶
GetOAuthByUid 通过授id获取三方授权数据
func (Auth) IsBindOAuth ¶
func (Auth) ListAuth ¶
func (r Auth) ListAuth(ctx kratosx.Context, req *types.ListAuthRequest) ([]*entity.Auth, uint32, error)
ListAuth 获取列表
func (Auth) ListOAuth ¶
func (r Auth) ListOAuth(ctx kratosx.Context, req *types.ListOAuthRequest) ([]*entity.OAuth, uint32, error)
ListOAuth 获取列表
func (Auth) UpdateAuthStatus ¶
UpdateAuthStatus 更新数据状态
func (Auth) UpdateOAuth ¶
UpdateOAuth 更新数据
type Channel ¶
type Channel struct { }
func NewChannel ¶
func NewChannel() *Channel
func (Channel) CreateChannel ¶
CreateChannel 创建数据
func (Channel) DeleteChannel ¶
DeleteChannel 删除数据
func (Channel) GetChannel ¶
GetChannel 获取指定的数据
func (Channel) GetChannelByKeyword ¶
GetChannelByKeyword 获取指定数据
type Feedback ¶
type Feedback struct { }
func NewFeedback ¶
func NewFeedback() *Feedback
func (Feedback) CreateFeedback ¶
CreateFeedback 创建数据
func (Feedback) CreateFeedbackCategory ¶
func (r Feedback) CreateFeedbackCategory(ctx kratosx.Context, fc *entity.FeedbackCategory) (uint32, error)
CreateFeedbackCategory 创建数据
func (Feedback) DeleteFeedback ¶
DeleteFeedback 删除数据
func (Feedback) DeleteFeedbackCategory ¶
DeleteFeedbackCategory 删除数据
func (Feedback) GetFeedback ¶
GetFeedback 获取指定的数据
func (Feedback) GetFeedbackCategory ¶
func (r Feedback) GetFeedbackCategory(ctx kratosx.Context, id uint32) (*entity.FeedbackCategory, error)
GetFeedbackCategory 获取指定的数据
func (Feedback) IsExistFeedbackByMd5 ¶
func (Feedback) ListFeedback ¶
func (r Feedback) ListFeedback(ctx kratosx.Context, req *types.ListFeedbackRequest) ([]*entity.Feedback, uint32, error)
ListFeedback 获取列表
func (Feedback) ListFeedbackCategory ¶
func (r Feedback) ListFeedbackCategory(ctx kratosx.Context, req *types.ListFeedbackCategoryRequest) ([]*entity.FeedbackCategory, uint32, error)
ListFeedbackCategory 获取列表
func (Feedback) UpdateFeedback ¶
UpdateFeedback 更新数据
func (Feedback) UpdateFeedbackCategory ¶
UpdateFeedbackCategory 更新数据
type Field ¶
type Field struct { }
func (Field) CreateField ¶
CreateField 创建数据
func (Field) DeleteField ¶
DeleteField 删除数据
type User ¶
type User struct { }
func (User) CreateUser ¶
CreateUser 创建数据
func (User) DeleteTrashUser ¶
DeleteTrashUser 彻底删除数据
func (User) DeleteUser ¶
DeleteUser 删除数据
func (User) ExportUser ¶
ExportUser 导出数据
func (User) GetTrashUser ¶
GetTrashUser 获取垃圾桶指定数据
func (User) GetUserByEmail ¶
GetUserByEmail 获取指定数据
func (User) GetUserByPhone ¶
GetUserByPhone 获取指定数据
func (User) GetUserByUsername ¶
GetUserByUsername 获取指定数据
func (User) HasUserByEmail ¶
HasUserByEmail 是否存在指定的用户邮箱
func (User) HasUserByUsername ¶
HasUserByUsername 是否存在指定的用户账户
func (User) ImportUser ¶
ImportUser 导入数据
func (User) ListTrashUser ¶
func (r User) ListTrashUser(ctx kratosx.Context, req *types.ListTrashUserRequest) ([]*entity.User, uint32, error)
ListTrashUser 获取垃圾桶列表
func (User) ListUser ¶
func (r User) ListUser(ctx kratosx.Context, req *types.ListUserRequest) ([]*entity.User, uint32, error)
ListUser 获取列表
func (User) RevertTrashUser ¶
RevertTrashUser 还原指定的数据
func (User) UpdateUser ¶
UpdateUser 更新数据
func (User) UpdateUserStatus ¶
UpdateUserStatus 更新数据状态
type Userinfo ¶
type Userinfo struct { }
func NewUserinfo ¶
func NewUserinfo() *Userinfo
func (Userinfo) CheckKeywords ¶
func (Userinfo) CreateUserinfo ¶
CreateUserinfo 创建数据
func (Userinfo) DeleteUserinfo ¶
DeleteUserinfo 删除数据
func (Userinfo) GetUserinfo ¶
GetUserinfo 获取指定的数据