Documentation ¶
Index ¶
- Variables
- type OrganizationService
- func (orgService *OrganizationService) CreateOrgUser(orgUser organization.OrgUserReq) error
- func (orgService *OrganizationService) CreateOrganization(org organization.Organization) (err error)
- func (orgService *OrganizationService) DeleteOrgUser(ids []uint, orgID uint) (err error)
- func (orgService *OrganizationService) DeleteOrganization(org organization.Organization) (err error)
- func (orgService *OrganizationService) DeleteOrganizationByIds(ids request.IdsReq) (err error)
- func (orgService *OrganizationService) FindOrgUserAll(orgID string) ([]uint, error)
- func (orgService *OrganizationService) GetOrgAuthority() (authorityData []organization.DataAuthority, err error)
- func (orgService *OrganizationService) GetOrgUserList(info organizationReq.OrgUserSearch) (list interface{}, total int64, err error)
- func (orgService *OrganizationService) GetOrganization(id uint) (org organization.Organization, err error)
- func (orgService *OrganizationService) GetOrganizationInfoList(info organizationReq.OrganizationSearch) (list interface{}, total int64, err error)
- func (orgService *OrganizationService) SetOrgAuthority(authID uint, authorityType int) (err error)
- func (orgService *OrganizationService) SetOrgUserAdmin(id uint, flag bool) (err error)
- func (orgService *OrganizationService) SyncAuthority() (err error)
- func (orgService *OrganizationService) TransferOrgUser(ids []uint, orgID, toOrgID uint) (err error)
- func (orgService *OrganizationService) UpdateOrganization(org organization.Organization) (err error)
- type ServiceGroup
Constants ¶
This section is empty.
Variables ¶
View Source
var ServiceGroupApp = new(ServiceGroup)
Functions ¶
This section is empty.
Types ¶
type OrganizationService ¶
type OrganizationService struct { }
func (*OrganizationService) CreateOrgUser ¶
func (orgService *OrganizationService) CreateOrgUser(orgUser organization.OrgUserReq) error
func (*OrganizationService) CreateOrganization ¶
func (orgService *OrganizationService) CreateOrganization(org organization.Organization) (err error)
CreateOrganization 创建Organization记录 Author [piexlmax](https://github.com/piexlmax)
func (*OrganizationService) DeleteOrgUser ¶
func (orgService *OrganizationService) DeleteOrgUser(ids []uint, orgID uint) (err error)
func (*OrganizationService) DeleteOrganization ¶
func (orgService *OrganizationService) DeleteOrganization(org organization.Organization) (err error)
DeleteOrganization 删除Organization记录 Author [piexlmax](https://github.com/piexlmax)
func (*OrganizationService) DeleteOrganizationByIds ¶
func (orgService *OrganizationService) DeleteOrganizationByIds(ids request.IdsReq) (err error)
DeleteOrganizationByIds 批量删除Organization记录 Author [piexlmax](https://github.com/piexlmax)
func (*OrganizationService) FindOrgUserAll ¶
func (orgService *OrganizationService) FindOrgUserAll(orgID string) ([]uint, error)
func (*OrganizationService) GetOrgAuthority ¶
func (orgService *OrganizationService) GetOrgAuthority() (authorityData []organization.DataAuthority, err error)
func (*OrganizationService) GetOrgUserList ¶
func (orgService *OrganizationService) GetOrgUserList(info organizationReq.OrgUserSearch) (list interface{}, total int64, err error)
GetOrganizationInfoList 分页获取当前组织下用户记录 Author [piexlmax](https://github.com/piexlmax)
func (*OrganizationService) GetOrganization ¶
func (orgService *OrganizationService) GetOrganization(id uint) (org organization.Organization, err error)
GetOrganization 根据id获取Organization记录 Author [piexlmax](https://github.com/piexlmax)
func (*OrganizationService) GetOrganizationInfoList ¶
func (orgService *OrganizationService) GetOrganizationInfoList(info organizationReq.OrganizationSearch) (list interface{}, total int64, err error)
GetOrganizationInfoList 分页获取Organization记录 Author [piexlmax](https://github.com/piexlmax)
func (*OrganizationService) SetOrgAuthority ¶
func (orgService *OrganizationService) SetOrgAuthority(authID uint, authorityType int) (err error)
func (*OrganizationService) SetOrgUserAdmin ¶
func (orgService *OrganizationService) SetOrgUserAdmin(id uint, flag bool) (err error)
func (*OrganizationService) SyncAuthority ¶
func (orgService *OrganizationService) SyncAuthority() (err error)
func (*OrganizationService) TransferOrgUser ¶
func (orgService *OrganizationService) TransferOrgUser(ids []uint, orgID, toOrgID uint) (err error)
func (*OrganizationService) UpdateOrganization ¶
func (orgService *OrganizationService) UpdateOrganization(org organization.Organization) (err error)
UpdateOrganization 更新Organization记录 Author [piexlmax](https://github.com/piexlmax)
type ServiceGroup ¶
type ServiceGroup struct {
OrganizationService
}
Click to show internal directories.
Click to hide internal directories.