logic

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockUserAllTokenLogic added in v0.1.1

type BlockUserAllTokenLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewBlockUserAllTokenLogic added in v0.1.1

func NewBlockUserAllTokenLogic(ctx context.Context, svcCtx *svc.ServiceContext) *BlockUserAllTokenLogic

func (*BlockUserAllTokenLogic) BlockUserAllToken added in v0.1.1

func (l *BlockUserAllTokenLogic) BlockUserAllToken(in *core.UUIDReq) (*core.BaseResp, error)

type ChangePasswordLogic

type ChangePasswordLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewChangePasswordLogic

func NewChangePasswordLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ChangePasswordLogic

func (*ChangePasswordLogic) ChangePassword

func (l *ChangePasswordLogic) ChangePassword(in *core.ChangePasswordReq) (*core.BaseResp, error)

type CreateOrUpdateApiLogic

type CreateOrUpdateApiLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCreateOrUpdateApiLogic

func NewCreateOrUpdateApiLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateOrUpdateApiLogic

func (*CreateOrUpdateApiLogic) CreateOrUpdateApi

func (l *CreateOrUpdateApiLogic) CreateOrUpdateApi(in *core.ApiInfo) (*core.BaseResp, error)

api management service

type CreateOrUpdateDictionaryDetailLogic added in v0.0.7

type CreateOrUpdateDictionaryDetailLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCreateOrUpdateDictionaryDetailLogic added in v0.0.7

func NewCreateOrUpdateDictionaryDetailLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateOrUpdateDictionaryDetailLogic

func (*CreateOrUpdateDictionaryDetailLogic) CreateOrUpdateDictionaryDetail added in v0.0.7

func (l *CreateOrUpdateDictionaryDetailLogic) CreateOrUpdateDictionaryDetail(in *core.DictionaryDetail) (*core.BaseResp, error)

type CreateOrUpdateDictionaryLogic added in v0.0.7

type CreateOrUpdateDictionaryLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCreateOrUpdateDictionaryLogic added in v0.0.7

func NewCreateOrUpdateDictionaryLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateOrUpdateDictionaryLogic

func (*CreateOrUpdateDictionaryLogic) CreateOrUpdateDictionary added in v0.0.7

func (l *CreateOrUpdateDictionaryLogic) CreateOrUpdateDictionary(in *core.DictionaryInfo) (*core.BaseResp, error)

dictionary management service

type CreateOrUpdateMenuAuthorityLogic

type CreateOrUpdateMenuAuthorityLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCreateOrUpdateMenuAuthorityLogic

func NewCreateOrUpdateMenuAuthorityLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateOrUpdateMenuAuthorityLogic

func (*CreateOrUpdateMenuAuthorityLogic) CreateOrUpdateMenuAuthority

func (l *CreateOrUpdateMenuAuthorityLogic) CreateOrUpdateMenuAuthority(in *core.RoleMenuAuthorityReq) (*core.BaseResp, error)

type CreateOrUpdateMenuLogic

type CreateOrUpdateMenuLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCreateOrUpdateMenuLogic

func NewCreateOrUpdateMenuLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateOrUpdateMenuLogic

func (*CreateOrUpdateMenuLogic) CreateOrUpdateMenu

func (l *CreateOrUpdateMenuLogic) CreateOrUpdateMenu(in *core.CreateOrUpdateMenuReq) (*core.BaseResp, error)

type CreateOrUpdateMenuParamLogic added in v0.0.4

type CreateOrUpdateMenuParamLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCreateOrUpdateMenuParamLogic added in v0.0.4

func NewCreateOrUpdateMenuParamLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateOrUpdateMenuParamLogic

func (*CreateOrUpdateMenuParamLogic) CreateOrUpdateMenuParam added in v0.0.4

func (l *CreateOrUpdateMenuParamLogic) CreateOrUpdateMenuParam(in *core.CreateOrUpdateMenuParamReq) (*core.BaseResp, error)

type CreateOrUpdateProviderLogic added in v0.0.8

type CreateOrUpdateProviderLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCreateOrUpdateProviderLogic added in v0.0.8

func NewCreateOrUpdateProviderLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateOrUpdateProviderLogic

func (*CreateOrUpdateProviderLogic) CreateOrUpdateProvider added in v0.0.8

func (l *CreateOrUpdateProviderLogic) CreateOrUpdateProvider(in *core.ProviderInfo) (*core.BaseResp, error)

oauth management

type CreateOrUpdateRoleLogic

type CreateOrUpdateRoleLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCreateOrUpdateRoleLogic

func NewCreateOrUpdateRoleLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateOrUpdateRoleLogic

func (*CreateOrUpdateRoleLogic) CreateOrUpdateRole

func (l *CreateOrUpdateRoleLogic) CreateOrUpdateRole(in *core.RoleInfo) (*core.BaseResp, error)

role service

func (*CreateOrUpdateRoleLogic) UpdateRoleInfoInRedis

func (l *CreateOrUpdateRoleLogic) UpdateRoleInfoInRedis() error

type CreateOrUpdateTokenLogic added in v0.1.1

type CreateOrUpdateTokenLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCreateOrUpdateTokenLogic added in v0.1.1

func NewCreateOrUpdateTokenLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateOrUpdateTokenLogic

func (*CreateOrUpdateTokenLogic) CreateOrUpdateToken added in v0.1.1

func (l *CreateOrUpdateTokenLogic) CreateOrUpdateToken(in *core.TokenInfo) (*core.BaseResp, error)

Token management

type CreateOrUpdateUserLogic

type CreateOrUpdateUserLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCreateOrUpdateUserLogic

func NewCreateOrUpdateUserLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateOrUpdateUserLogic

func (*CreateOrUpdateUserLogic) CreateOrUpdateUser

func (l *CreateOrUpdateUserLogic) CreateOrUpdateUser(in *core.CreateOrUpdateUserReq) (*core.BaseResp, error)

type DeleteApiLogic

type DeleteApiLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteApiLogic

func NewDeleteApiLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteApiLogic

func (*DeleteApiLogic) DeleteApi

func (l *DeleteApiLogic) DeleteApi(in *core.IDReq) (*core.BaseResp, error)

type DeleteDictionaryDetailLogic added in v0.0.7

type DeleteDictionaryDetailLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteDictionaryDetailLogic added in v0.0.7

func NewDeleteDictionaryDetailLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteDictionaryDetailLogic

func (*DeleteDictionaryDetailLogic) DeleteDictionaryDetail added in v0.0.7

func (l *DeleteDictionaryDetailLogic) DeleteDictionaryDetail(in *core.IDReq) (*core.BaseResp, error)

type DeleteDictionaryLogic added in v0.0.7

type DeleteDictionaryLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteDictionaryLogic added in v0.0.7

func NewDeleteDictionaryLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteDictionaryLogic

func (*DeleteDictionaryLogic) DeleteDictionary added in v0.0.7

func (l *DeleteDictionaryLogic) DeleteDictionary(in *core.IDReq) (*core.BaseResp, error)

type DeleteMenuLogic

type DeleteMenuLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteMenuLogic

func NewDeleteMenuLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteMenuLogic

func (*DeleteMenuLogic) DeleteMenu

func (l *DeleteMenuLogic) DeleteMenu(in *core.IDReq) (*core.BaseResp, error)

type DeleteMenuParamLogic

type DeleteMenuParamLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteMenuParamLogic

func NewDeleteMenuParamLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteMenuParamLogic

func (*DeleteMenuParamLogic) DeleteMenuParam

func (l *DeleteMenuParamLogic) DeleteMenuParam(in *core.IDReq) (*core.BaseResp, error)

type DeleteProviderLogic added in v0.0.8

type DeleteProviderLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteProviderLogic added in v0.0.8

func NewDeleteProviderLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteProviderLogic

func (*DeleteProviderLogic) DeleteProvider added in v0.0.8

func (l *DeleteProviderLogic) DeleteProvider(in *core.IDReq) (*core.BaseResp, error)

type DeleteRoleLogic

type DeleteRoleLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteRoleLogic

func NewDeleteRoleLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteRoleLogic

func (*DeleteRoleLogic) DeleteRole

func (l *DeleteRoleLogic) DeleteRole(in *core.IDReq) (*core.BaseResp, error)

type DeleteTokenLogic added in v0.1.1

type DeleteTokenLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteTokenLogic added in v0.1.1

func NewDeleteTokenLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteTokenLogic

func (*DeleteTokenLogic) DeleteToken added in v0.1.1

func (l *DeleteTokenLogic) DeleteToken(in *core.IDReq) (*core.BaseResp, error)

type DeleteUserLogic

type DeleteUserLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteUserLogic

func NewDeleteUserLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteUserLogic

func (*DeleteUserLogic) DeleteUser

func (l *DeleteUserLogic) DeleteUser(in *core.IDReq) (*core.BaseResp, error)

type GetApiListLogic

type GetApiListLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetApiListLogic

func NewGetApiListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetApiListLogic

func (*GetApiListLogic) GetApiList

func (l *GetApiListLogic) GetApiList(in *core.ApiPageReq) (*core.ApiListResp, error)

type GetDetailByDictionaryNameLogic added in v0.0.7

type GetDetailByDictionaryNameLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetDetailByDictionaryNameLogic added in v0.0.7

func NewGetDetailByDictionaryNameLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetDetailByDictionaryNameLogic

func (*GetDetailByDictionaryNameLogic) GetDetailByDictionaryName added in v0.0.7

type GetDictionaryListLogic added in v0.0.7

type GetDictionaryListLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetDictionaryListLogic added in v0.0.7

func NewGetDictionaryListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetDictionaryListLogic

func (*GetDictionaryListLogic) GetDictionaryList added in v0.0.7

func (l *GetDictionaryListLogic) GetDictionaryList(in *core.DictionaryPageReq) (*core.DictionaryList, error)

type GetMenuAuthorityLogic

type GetMenuAuthorityLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetMenuAuthorityLogic

func NewGetMenuAuthorityLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetMenuAuthorityLogic

func (*GetMenuAuthorityLogic) GetMenuAuthority

func (l *GetMenuAuthorityLogic) GetMenuAuthority(in *core.IDReq) (*core.RoleMenuAuthorityResp, error)

authorization management service

type GetMenuByPageLogic

type GetMenuByPageLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetMenuByPageLogic

func NewGetMenuByPageLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetMenuByPageLogic

func (*GetMenuByPageLogic) GetMenuByPage

func (l *GetMenuByPageLogic) GetMenuByPage(in *core.PageInfoReq) (*core.MenuInfoList, error)

type GetMenuListByRoleLogic

type GetMenuListByRoleLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetMenuListByRoleLogic

func NewGetMenuListByRoleLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetMenuListByRoleLogic

func (*GetMenuListByRoleLogic) GetMenuListByRole

func (l *GetMenuListByRoleLogic) GetMenuListByRole(in *core.IDReq) (*core.MenuInfoList, error)

type GetMenuParamListByMenuIdLogic added in v0.1.2

type GetMenuParamListByMenuIdLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetMenuParamListByMenuIdLogic added in v0.1.2

func NewGetMenuParamListByMenuIdLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetMenuParamListByMenuIdLogic

func (*GetMenuParamListByMenuIdLogic) GetMenuParamListByMenuId added in v0.1.2

func (l *GetMenuParamListByMenuIdLogic) GetMenuParamListByMenuId(in *core.IDReq) (*core.MenuParamListResp, error)

type GetProviderListLogic added in v0.0.8

type GetProviderListLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetProviderListLogic added in v0.0.8

func NewGetProviderListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetProviderListLogic

func (*GetProviderListLogic) GetProviderList added in v0.0.8

func (l *GetProviderListLogic) GetProviderList(in *core.PageInfoReq) (*core.ProviderListResp, error)

type GetRoleByIdLogic

type GetRoleByIdLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetRoleByIdLogic

func NewGetRoleByIdLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetRoleByIdLogic

func (*GetRoleByIdLogic) GetRoleById

func (l *GetRoleByIdLogic) GetRoleById(in *core.IDReq) (*core.RoleInfo, error)

type GetRoleListLogic

type GetRoleListLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetRoleListLogic

func NewGetRoleListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetRoleListLogic

func (*GetRoleListLogic) GetRoleList

func (l *GetRoleListLogic) GetRoleList(in *core.PageInfoReq) (*core.RoleListResp, error)

type GetTokenListLogic added in v0.1.1

type GetTokenListLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetTokenListLogic added in v0.1.1

func NewGetTokenListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetTokenListLogic

func (*GetTokenListLogic) GetTokenList added in v0.1.1

func (l *GetTokenListLogic) GetTokenList(in *core.TokenListReq) (*core.TokenListResp, error)

type GetUserByIdLogic

type GetUserByIdLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetUserByIdLogic

func NewGetUserByIdLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetUserByIdLogic

func (*GetUserByIdLogic) GetUserById

func (l *GetUserByIdLogic) GetUserById(in *core.UUIDReq) (*core.UserInfoResp, error)

type GetUserListLogic

type GetUserListLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetUserListLogic

func NewGetUserListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetUserListLogic

func (*GetUserListLogic) GetUserList

func (l *GetUserListLogic) GetUserList(in *core.GetUserListReq) (*core.UserListResp, error)

type InitDatabaseLogic

type InitDatabaseLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewInitDatabaseLogic

func NewInitDatabaseLogic(ctx context.Context, svcCtx *svc.ServiceContext) *InitDatabaseLogic

func (*InitDatabaseLogic) InitDatabase

func (l *InitDatabaseLogic) InitDatabase(in *core.Empty) (*core.BaseResp, error)

type LoginLogic

type LoginLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewLoginLogic

func NewLoginLogic(ctx context.Context, svcCtx *svc.ServiceContext) *LoginLogic

func (*LoginLogic) Login

func (l *LoginLogic) Login(in *core.LoginReq) (*core.LoginResp, error)

user service

type OauthCallbackLogic added in v0.0.8

type OauthCallbackLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewOauthCallbackLogic added in v0.0.8

func NewOauthCallbackLogic(ctx context.Context, svcCtx *svc.ServiceContext) *OauthCallbackLogic

func (*OauthCallbackLogic) OauthCallback added in v0.0.8

func (l *OauthCallbackLogic) OauthCallback(in *core.CallbackReq) (*core.LoginResp, error)

type OauthLoginLogic added in v0.0.8

type OauthLoginLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewOauthLoginLogic added in v0.0.8

func NewOauthLoginLogic(ctx context.Context, svcCtx *svc.ServiceContext) *OauthLoginLogic

func (*OauthLoginLogic) OauthLogin added in v0.0.8

type SetRoleStatusLogic

type SetRoleStatusLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewSetRoleStatusLogic

func NewSetRoleStatusLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SetRoleStatusLogic

func (*SetRoleStatusLogic) SetRoleStatus

func (l *SetRoleStatusLogic) SetRoleStatus(in *core.SetStatusReq) (*core.BaseResp, error)

type SetTokenStatusLogic added in v0.1.1

type SetTokenStatusLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewSetTokenStatusLogic added in v0.1.1

func NewSetTokenStatusLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SetTokenStatusLogic

func (*SetTokenStatusLogic) SetTokenStatus added in v0.1.1

func (l *SetTokenStatusLogic) SetTokenStatus(in *core.SetStatusReq) (*core.BaseResp, error)

type UpdateProfileLogic added in v0.0.2

type UpdateProfileLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUpdateProfileLogic added in v0.0.2

func NewUpdateProfileLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateProfileLogic

func (*UpdateProfileLogic) UpdateProfile added in v0.0.2

func (l *UpdateProfileLogic) UpdateProfile(in *core.UpdateProfileReq) (*core.BaseResp, error)

Jump to

Keyboard shortcuts

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