dbs

package
v1.0.33 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
}

func NewApp

func NewApp() *App

func (App) CreateApp

func (r App) CreateApp(ctx kratosx.Context, app *entity.App) (uint32, error)

CreateApp 创建数据

func (App) DeleteApp

func (r App) DeleteApp(ctx kratosx.Context, id uint32) error

DeleteApp 删除数据

func (App) GetApp

func (r App) GetApp(ctx kratosx.Context, id uint32) (*entity.App, error)

GetApp 获取指定的数据

func (App) GetAppByKeyword

func (r App) GetAppByKeyword(ctx kratosx.Context, keyword string) (*entity.App, error)

GetAppByKeyword 获取指定数据

func (App) ListApp

func (r App) ListApp(ctx kratosx.Context, req *types.ListAppRequest) ([]*entity.App, uint32, error)

ListApp 获取列表

func (App) UpdateApp

func (r App) UpdateApp(ctx kratosx.Context, app *entity.App) error

UpdateApp 更新数据

func (App) UpdateAppStatus

func (r App) UpdateAppStatus(ctx kratosx.Context, req *types.UpdateAppStatusRequest) error

UpdateAppStatus 更新数据状态

type Auth

type Auth struct {
}

func NewAuth

func NewAuth() *Auth

func (Auth) BindOAuthByUid

func (r Auth) BindOAuthByUid(ctx kratosx.Context, uid uint32, aid string) error

func (Auth) CreateAuth

func (r Auth) CreateAuth(ctx kratosx.Context, auth *entity.Auth) (uint32, error)

CreateAuth 创建数据

func (Auth) CreateOAuth

func (r Auth) CreateOAuth(ctx kratosx.Context, oauth *entity.OAuth) (string, error)

CreateOAuth 创建数据

func (Auth) DeleteAuth

func (r Auth) DeleteAuth(ctx kratosx.Context, userId uint32, appId uint32) error

DeleteAuth 删除数据

func (Auth) DeleteOAuth

func (r Auth) DeleteOAuth(ctx kratosx.Context, userId uint32, channelId uint32) error

DeleteOAuth 删除数据

func (Auth) GetAuth added in v1.0.33

func (r Auth) GetAuth(ctx kratosx.Context, id uint32) (*entity.Auth, error)

GetAuth 获取指定数据

func (Auth) GetAuthByUA

func (r Auth) GetAuthByUA(ctx kratosx.Context, userId uint32, appId uint32) (*entity.Auth, error)

GetAuthByUA 获取指定数据

func (Auth) GetOAuthByCA

func (r Auth) GetOAuthByCA(ctx kratosx.Context, cid uint32, aid string) (*entity.OAuth, error)

func (Auth) GetOAuthByUid

func (r Auth) GetOAuthByUid(ctx kratosx.Context, uid string) (*entity.OAuth, error)

GetOAuthByUid 通过授id获取三方授权数据

func (Auth) IsBindOAuth

func (r Auth) IsBindOAuth(ctx kratosx.Context, cid uint32, aid string) bool

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

func (r Auth) UpdateAuthStatus(ctx kratosx.Context, req *types.UpdateAuthStatusRequest) error

UpdateAuthStatus 更新数据状态

func (Auth) UpdateOAuth

func (r Auth) UpdateOAuth(ctx kratosx.Context, oauth *entity.OAuth) error

UpdateOAuth 更新数据

func (Auth) UpsertAuth

func (r Auth) UpsertAuth(ctx kratosx.Context, auth *entity.Auth) error

UpsertAuth 存在更新数据,不存在新增

type Channel

type Channel struct {
}

func NewChannel

func NewChannel() *Channel

func (Channel) CreateChannel

func (r Channel) CreateChannel(ctx kratosx.Context, channel *entity.Channel) (uint32, error)

CreateChannel 创建数据

func (Channel) DeleteChannel

func (r Channel) DeleteChannel(ctx kratosx.Context, id uint32) error

DeleteChannel 删除数据

func (Channel) GetChannel

func (r Channel) GetChannel(ctx kratosx.Context, id uint32) (*entity.Channel, error)

GetChannel 获取指定的数据

func (Channel) GetChannelByKeyword

func (r Channel) GetChannelByKeyword(ctx kratosx.Context, keyword string) (*entity.Channel, error)

GetChannelByKeyword 获取指定数据

func (Channel) ListChannel

func (r Channel) ListChannel(ctx kratosx.Context, req *types.ListChannelRequest) ([]*entity.Channel, uint32, error)

ListChannel 获取列表

func (Channel) UpdateChannel

func (r Channel) UpdateChannel(ctx kratosx.Context, channel *entity.Channel) error

UpdateChannel 更新数据

type Feedback

type Feedback struct {
}

func NewFeedback

func NewFeedback() *Feedback

func (Feedback) CreateFeedback

func (r Feedback) CreateFeedback(ctx kratosx.Context, feedback *entity.Feedback) (uint32, error)

CreateFeedback 创建数据

func (Feedback) CreateFeedbackCategory

func (r Feedback) CreateFeedbackCategory(ctx kratosx.Context, fc *entity.FeedbackCategory) (uint32, error)

CreateFeedbackCategory 创建数据

func (Feedback) DeleteFeedback

func (r Feedback) DeleteFeedback(ctx kratosx.Context, id uint32) error

DeleteFeedback 删除数据

func (Feedback) DeleteFeedbackCategory

func (r Feedback) DeleteFeedbackCategory(ctx kratosx.Context, id uint32) error

DeleteFeedbackCategory 删除数据

func (Feedback) GetFeedback

func (r Feedback) GetFeedback(ctx kratosx.Context, id uint32) (*entity.Feedback, error)

GetFeedback 获取指定的数据

func (Feedback) GetFeedbackCategory

func (r Feedback) GetFeedbackCategory(ctx kratosx.Context, id uint32) (*entity.FeedbackCategory, error)

GetFeedbackCategory 获取指定的数据

func (Feedback) IsExistFeedbackByMd5

func (r Feedback) IsExistFeedbackByMd5(ctx kratosx.Context, md5 string) bool

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

func (r Feedback) UpdateFeedback(ctx kratosx.Context, feedback *entity.Feedback) error

UpdateFeedback 更新数据

func (Feedback) UpdateFeedbackCategory

func (r Feedback) UpdateFeedbackCategory(ctx kratosx.Context, fc *entity.FeedbackCategory) error

UpdateFeedbackCategory 更新数据

type Field

type Field struct {
}

func NewField

func NewField() *Field

func (Field) CreateField

func (r Field) CreateField(ctx kratosx.Context, field *entity.Field) (uint32, error)

CreateField 创建数据

func (Field) DeleteField

func (r Field) DeleteField(ctx kratosx.Context, id uint32) error

DeleteField 删除数据

func (Field) GetField

func (r Field) GetField(ctx kratosx.Context, id uint32) (*entity.Field, error)

GetField 获取指定的数据

func (Field) ListField

func (r Field) ListField(ctx kratosx.Context, req *types.ListFieldRequest) ([]*entity.Field, uint32, error)

ListField 获取列表

func (Field) UpdateField

func (r Field) UpdateField(ctx kratosx.Context, field *entity.Field) error

UpdateField 更新数据

type User

type User struct {
}

func NewUser

func NewUser() *User

func (User) CreateUser

func (r User) CreateUser(ctx kratosx.Context, user *entity.User) (uint32, error)

CreateUser 创建数据

func (User) DeleteTrashUser

func (r User) DeleteTrashUser(ctx kratosx.Context, ids []uint32) (uint32, error)

DeleteTrashUser 彻底删除数据

func (User) DeleteUser

func (r User) DeleteUser(ctx kratosx.Context, ids []uint32) (uint32, error)

DeleteUser 删除数据

func (User) ExportUser

func (r User) ExportUser(ctx kratosx.Context, req *types.ExportUserRequest) (string, error)

ExportUser 导出数据

func (User) GetTrashUser

func (r User) GetTrashUser(ctx kratosx.Context, id uint32) (*entity.User, error)

GetTrashUser 获取垃圾桶指定数据

func (User) GetUser

func (r User) GetUser(ctx kratosx.Context, id uint32) (*entity.User, error)

GetUser 获取指定的数据

func (User) GetUserByEmail

func (r User) GetUserByEmail(ctx kratosx.Context, email string) (*entity.User, error)

GetUserByEmail 获取指定数据

func (User) GetUserByPhone

func (r User) GetUserByPhone(ctx kratosx.Context, phone string) (*entity.User, error)

GetUserByPhone 获取指定数据

func (User) GetUserByUsername

func (r User) GetUserByUsername(ctx kratosx.Context, username string) (*entity.User, error)

GetUserByUsername 获取指定数据

func (User) HasUserByEmail

func (r User) HasUserByEmail(ctx kratosx.Context, email string) bool

HasUserByEmail 是否存在指定的用户邮箱

func (User) HasUserByUsername

func (r User) HasUserByUsername(ctx kratosx.Context, username string) bool

HasUserByUsername 是否存在指定的用户账户

func (User) ImportUser

func (r User) ImportUser(ctx kratosx.Context, users []*entity.User) (uint32, error)

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

func (r User) RevertTrashUser(ctx kratosx.Context, id uint32) error

RevertTrashUser 还原指定的数据

func (User) UpdateUser

func (r User) UpdateUser(ctx kratosx.Context, user *entity.User) error

UpdateUser 更新数据

func (User) UpdateUserStatus

func (r User) UpdateUserStatus(ctx kratosx.Context, req *types.UpdateUserStatusRequest) error

UpdateUserStatus 更新数据状态

type Userinfo

type Userinfo struct {
}

func NewUserinfo

func NewUserinfo() *Userinfo

func (Userinfo) CheckKeywords

func (r Userinfo) CheckKeywords(ctx kratosx.Context, appId uint32, keywords []string) error

func (Userinfo) CreateUserinfo

func (r Userinfo) CreateUserinfo(ctx kratosx.Context, userinfo *entity.Userinfo) (uint32, error)

CreateUserinfo 创建数据

func (Userinfo) DeleteUserinfo

func (r Userinfo) DeleteUserinfo(ctx kratosx.Context, id uint32) error

DeleteUserinfo 删除数据

func (Userinfo) GetUserinfo

func (r Userinfo) GetUserinfo(ctx kratosx.Context, id uint32) (*entity.Userinfo, error)

GetUserinfo 获取指定的数据

func (Userinfo) ListUserinfo

func (r Userinfo) ListUserinfo(ctx kratosx.Context, req *types.ListUserinfoRequest) ([]*entity.Userinfo, uint32, error)

ListUserinfo 获取列表

func (Userinfo) UpdateUserinfo

func (r Userinfo) UpdateUserinfo(ctx kratosx.Context, userinfo *entity.Userinfo) error

UpdateUserinfo 更新数据

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL