datamanagelogic

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPwd

func CheckPwd(svcCtx *svc.ServiceContext, pwd string) error

func CheckUserName

func CheckUserName(userName string) error

func DBToAuthAreaDo

func DBToAuthAreaDo(area *relationDB.SysDataArea) *userDataAuth.Area

func DBToAuthAreaDos

func DBToAuthAreaDos(areas []*relationDB.SysDataArea) (ret []*userDataAuth.Area)

func DBToAuthProjectDo

func DBToAuthProjectDo(area *relationDB.SysDataProject) *userDataAuth.Project

func DBToAuthProjectDos

func DBToAuthProjectDos(areas []*relationDB.SysDataProject) (ret []*userDataAuth.Project)

func InitCacheUserAuthArea

func InitCacheUserAuthArea(ctx context.Context, userID int64) error
func InitCacheUserAuthProject(ctx context.Context, userID int64) error {
	projects, err := relationDB.NewDataProjectRepo(ctx).FindByFilter(ctx, relationDB.DataProjectFilter{ProjectID: userID}, nil)
	if err != nil {
		return err
	}
	return caches.SetUserAuthProject(ctx, userID, DBToAuthProjectDos(projects))
}

func ToAuthAreaDo

func ToAuthAreaDo(area *sys.DataArea) *userDataAuth.Area

func ToAuthAreaDos

func ToAuthAreaDos(areas []*sys.DataArea) (ret []*userDataAuth.Area)

func ToAuthProjectDo

func ToAuthProjectDo(area *sys.DataProject) *userDataAuth.Project

func ToAuthProjectDos

func ToAuthProjectDos(areas []*sys.DataProject) (ret []*userDataAuth.Project)

func ToUserAreaApplyInfos

func ToUserAreaApplyInfos(in []*relationDB.SysUserAreaApply) (ret []*sys.UserAreaApplyInfo)

Types

type DataAreaIndexLogic

type DataAreaIndexLogic struct {
	logx.Logger
	UaaDB *relationDB.DataAreaRepo
	// contains filtered or unexported fields
}

func NewDataAreaIndexLogic

func NewDataAreaIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DataAreaIndexLogic

func (*DataAreaIndexLogic) DataAreaIndex

type DataAreaMultiDeleteLogic

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

func NewDataAreaMultiDeleteLogic

func NewDataAreaMultiDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DataAreaMultiDeleteLogic

func (*DataAreaMultiDeleteLogic) DataAreaMultiDelete

func (l *DataAreaMultiDeleteLogic) DataAreaMultiDelete(in *sys.DataAreaMultiDeleteReq) (*sys.Empty, error)

type DataAreaMultiUpdateLogic

type DataAreaMultiUpdateLogic struct {
	logx.Logger
	UaaDB *relationDB.DataAreaRepo
	UapDB *relationDB.DataProjectRepo
	// contains filtered or unexported fields
}

func NewDataAreaMultiUpdateLogic

func NewDataAreaMultiUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DataAreaMultiUpdateLogic

func (*DataAreaMultiUpdateLogic) DataAreaMultiUpdate

func (l *DataAreaMultiUpdateLogic) DataAreaMultiUpdate(in *sys.DataAreaMultiUpdateReq) (*sys.Empty, error)

type DataOpenAccessCreateLogic added in v0.1.6

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

func NewDataOpenAccessCreateLogic added in v0.1.6

func NewDataOpenAccessCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DataOpenAccessCreateLogic

func (*DataOpenAccessCreateLogic) DataOpenAccessCreate added in v0.1.6

func (l *DataOpenAccessCreateLogic) DataOpenAccessCreate(in *sys.OpenAccess) (*sys.WithID, error)

type DataOpenAccessDeleteLogic added in v0.1.6

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

func NewDataOpenAccessDeleteLogic added in v0.1.6

func NewDataOpenAccessDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DataOpenAccessDeleteLogic

func (*DataOpenAccessDeleteLogic) DataOpenAccessDelete added in v0.1.6

func (l *DataOpenAccessDeleteLogic) DataOpenAccessDelete(in *sys.WithID) (*sys.Empty, error)

type DataOpenAccessIndexLogic added in v0.1.6

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

func NewDataOpenAccessIndexLogic added in v0.1.6

func NewDataOpenAccessIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DataOpenAccessIndexLogic

func (*DataOpenAccessIndexLogic) DataOpenAccessIndex added in v0.1.6

type DataOpenAccessReadLogic added in v0.1.6

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

func NewDataOpenAccessReadLogic added in v0.1.6

func NewDataOpenAccessReadLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DataOpenAccessReadLogic

func (*DataOpenAccessReadLogic) DataOpenAccessRead added in v0.1.6

func (l *DataOpenAccessReadLogic) DataOpenAccessRead(in *sys.WithID) (*sys.OpenAccess, error)

type DataOpenAccessUpdateLogic added in v0.1.6

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

func NewDataOpenAccessUpdateLogic added in v0.1.6

func NewDataOpenAccessUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DataOpenAccessUpdateLogic

func (*DataOpenAccessUpdateLogic) DataOpenAccessUpdate added in v0.1.6

func (l *DataOpenAccessUpdateLogic) DataOpenAccessUpdate(in *sys.OpenAccess) (*sys.Empty, error)

type DataProjectCreateLogic

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

func NewDataProjectCreateLogic

func NewDataProjectCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DataProjectCreateLogic

func (*DataProjectCreateLogic) DataProjectCreate

func (l *DataProjectCreateLogic) DataProjectCreate(in *sys.DataProjectSaveReq) (*sys.Empty, error)

type DataProjectDeleteLogic

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

func NewDataProjectDeleteLogic

func NewDataProjectDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DataProjectDeleteLogic

func (*DataProjectDeleteLogic) DataProjectDelete

func (l *DataProjectDeleteLogic) DataProjectDelete(in *sys.DataProjectDeleteReq) (*sys.Empty, error)

type DataProjectIndexLogic

type DataProjectIndexLogic struct {
	logx.Logger
	UapDB *relationDB.DataProjectRepo
	// contains filtered or unexported fields
}

func NewDataProjectIndexLogic

func NewDataProjectIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DataProjectIndexLogic

func (*DataProjectIndexLogic) DataProjectIndex

type DataProjectMultiUpdateLogic

type DataProjectMultiUpdateLogic struct {
	logx.Logger
	UapDB *relationDB.DataProjectRepo
	// contains filtered or unexported fields
}

func NewDataProjectMultiUpdateLogic

func NewDataProjectMultiUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DataProjectMultiUpdateLogic

func (*DataProjectMultiUpdateLogic) DataProjectMultiUpdate

func (l *DataProjectMultiUpdateLogic) DataProjectMultiUpdate(in *sys.DataProjectMultiUpdateReq) (*sys.Empty, error)

type UserAreaApplyDealLogic

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

func NewUserAreaApplyDealLogic

func NewUserAreaApplyDealLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UserAreaApplyDealLogic

func (*UserAreaApplyDealLogic) UserAreaApplyDeal

func (l *UserAreaApplyDealLogic) UserAreaApplyDeal(in *sys.UserAreaApplyDealReq) (*sys.Empty, error)

type UserAreaApplyIndexLogic

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

func NewUserAreaApplyIndexLogic

func NewUserAreaApplyIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UserAreaApplyIndexLogic

func (*UserAreaApplyIndexLogic) UserAreaApplyIndex

Jump to

Keyboard shortcuts

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