Documentation ¶
Index ¶
- func CheckPwd(svcCtx *svc.ServiceContext, pwd string) error
- func CheckUserName(userName string) error
- func DBToAuthAreaDo(area *relationDB.SysDataArea) *userDataAuth.Area
- func DBToAuthAreaDos(areas []*relationDB.SysDataArea) (ret []*userDataAuth.Area)
- func DBToAuthProjectDo(area *relationDB.SysDataProject) *userDataAuth.Project
- func DBToAuthProjectDos(areas []*relationDB.SysDataProject) (ret []*userDataAuth.Project)
- func InitCacheUserAuthArea(ctx context.Context, userID int64) error
- func ToAuthAreaDo(ctx context.Context, svcCtx *svc.ServiceContext, area *sys.DataArea) *userDataAuth.Area
- func ToAuthAreaDos(ctx context.Context, svcCtx *svc.ServiceContext, areas []*sys.DataArea) (ret []*userDataAuth.Area)
- func ToAuthProjectDo(area *sys.DataProject) *userDataAuth.Project
- func ToAuthProjectDos(areas []*sys.DataProject) (ret []*userDataAuth.Project)
- func ToUserAreaApplyInfos(in []*relationDB.SysUserAreaApply) (ret []*sys.UserAreaApplyInfo)
- type DataAreaIndexLogic
- type DataAreaMultiDeleteLogic
- type DataAreaMultiUpdateLogic
- type DataOpenAccessCreateLogic
- type DataOpenAccessDeleteLogic
- type DataOpenAccessIndexLogic
- type DataOpenAccessReadLogic
- type DataOpenAccessUpdateLogic
- type DataProjectCreateLogic
- type DataProjectDeleteLogic
- type DataProjectIndexLogic
- type DataProjectMultiUpdateLogic
- type UserAreaApplyDealLogic
- type UserAreaApplyIndexLogic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckUserName ¶
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 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(ctx context.Context, svcCtx *svc.ServiceContext, area *sys.DataArea) *userDataAuth.Area
func ToAuthAreaDos ¶
func ToAuthAreaDos(ctx context.Context, svcCtx *svc.ServiceContext, 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 ¶
func (l *DataAreaIndexLogic) DataAreaIndex(in *sys.DataAreaIndexReq) (*sys.DataAreaIndexResp, error)
type DataAreaMultiDeleteLogic ¶
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 ¶
func NewDataOpenAccessCreateLogic ¶
func NewDataOpenAccessCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DataOpenAccessCreateLogic
func (*DataOpenAccessCreateLogic) DataOpenAccessCreate ¶
func (l *DataOpenAccessCreateLogic) DataOpenAccessCreate(in *sys.OpenAccess) (*sys.WithID, error)
type DataOpenAccessDeleteLogic ¶
func NewDataOpenAccessDeleteLogic ¶
func NewDataOpenAccessDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DataOpenAccessDeleteLogic
func (*DataOpenAccessDeleteLogic) DataOpenAccessDelete ¶
type DataOpenAccessIndexLogic ¶
func NewDataOpenAccessIndexLogic ¶
func NewDataOpenAccessIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DataOpenAccessIndexLogic
func (*DataOpenAccessIndexLogic) DataOpenAccessIndex ¶
func (l *DataOpenAccessIndexLogic) DataOpenAccessIndex(in *sys.OpenAccessIndexReq) (*sys.OpenAccessIndexResp, error)
type DataOpenAccessReadLogic ¶
func NewDataOpenAccessReadLogic ¶
func NewDataOpenAccessReadLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DataOpenAccessReadLogic
func (*DataOpenAccessReadLogic) DataOpenAccessRead ¶
func (l *DataOpenAccessReadLogic) DataOpenAccessRead(in *sys.WithID) (*sys.OpenAccess, error)
type DataOpenAccessUpdateLogic ¶
func NewDataOpenAccessUpdateLogic ¶
func NewDataOpenAccessUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DataOpenAccessUpdateLogic
func (*DataOpenAccessUpdateLogic) DataOpenAccessUpdate ¶
func (l *DataOpenAccessUpdateLogic) DataOpenAccessUpdate(in *sys.OpenAccess) (*sys.Empty, error)
type DataProjectCreateLogic ¶
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 ¶
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 ¶
func (l *DataProjectIndexLogic) DataProjectIndex(in *sys.DataProjectIndexReq) (*sys.DataProjectIndexResp, error)
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 ¶
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 ¶
func NewUserAreaApplyIndexLogic ¶
func NewUserAreaApplyIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UserAreaApplyIndexLogic
func (*UserAreaApplyIndexLogic) UserAreaApplyIndex ¶
func (l *UserAreaApplyIndexLogic) UserAreaApplyIndex(in *sys.UserAreaApplyIndexReq) (*sys.UserAreaApplyIndexResp, error)
Source Files ¶
- assemble.go
- common.go
- dataAreaIndexLogic.go
- dataAreaMultiDeleteLogic.go
- dataAreaMultiUpdateLogic.go
- dataOpenAccessCreateLogic.go
- dataOpenAccessDeleteLogic.go
- dataOpenAccessIndexLogic.go
- dataOpenAccessReadLogic.go
- dataOpenAccessUpdateLogic.go
- dataProjectCreateLogic.go
- dataProjectDeleteLogic.go
- dataProjectIndexLogic.go
- dataProjectMultiUpdateLogic.go
- userAreaApplyDealLogic.go
- userAreaApplyIndexLogic.go
Click to show internal directories.
Click to hide internal directories.