organization

package
v2.0.0-...-8f2ac71 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdvancedSearchUserIdByClient

func AdvancedSearchUserIdByClient(clientId string, req org.UserSearchReq, isLeave bool, single bool) (userIds []uint64)

func FindDictByCode

func FindDictByCode(code string) *org.OrgDictionaryItem

func FindDictByTypeCode

func FindDictByTypeCode(code string) *[]org.OrgDictionaryItem

func FindDictByTypeCodeAndClientId

func FindDictByTypeCodeAndClientId(clientId, code string) (items []org.OrgDictionaryItem, err error)

func FindDictTypeByCode

func FindDictTypeByCode(code string) *org.OrgDictionaryItem

func FindNodeByID

func FindNodeByID(id uint64) (node org.Node)

func FindNodeByIDAndClientId

func FindNodeByIDAndClientId(id uint64, clientID string) (node org.Node)

func FindNodeByIDsAndClientId

func FindNodeByIDsAndClientId(ids []uint64, clientID string) (nodes []org.Node)

func FindNodeByIdIn

func FindNodeByIdIn(ids string) (res []org.Node)

func FindNodeByLeader

func FindNodeByLeader(ids string) (res map[uint][]uint)

func FindNodePath

func FindNodePath(ids string) (res map[uint][]uint)

func FindUserByID

func FindUserByID(userID uint64) (user org.OrgUser, err error)

func FindUserByIDAndClientID

func FindUserByIDAndClientID(userID uint64, clientID string) (user org.OrgUser, err error)

func FindUserByIDS

func FindUserByIDS(userIDs []uint64) (users []org.OrgUser, err error)

func FindUserByIDSAndClientID

func FindUserByIDSAndClientID(userIDs []uint64, clientID string) (users []org.OrgUser, err error)

func FindUserByNodeIDS

func FindUserByNodeIDS(nodeIDs []uint64) (users []org.OrgUser, err error)

func FindUserByNodeIDSAndClientID

func FindUserByNodeIDSAndClientID(nodeIDs []uint64, clientID string) (users []org.OrgUser, err error)

func FindUserByNodeId

func FindUserByNodeId(nodeId uint) (users []org.OrgUser, err error)

func FindUserByNodeIdAndName

func FindUserByNodeIdAndName(nodeId uint, name string) (users []org.OrgUser, err error)

func FindUserByRole

func FindUserByRole(clientID string, roleID uint64) (users []org.OrgUser, err error)

func FindUserIDAndNameByNodeIDS

func FindUserIDAndNameByNodeIDS(nodeIDs []uint64) (users []org.OrgUser, err error)

func FindUserIDByEntryDate

func FindUserIDByEntryDate(start time.Time, end time.Time) (IDList []uint64)

func FindUserPageByFilter

func FindUserPageByFilter(filter org.UserFilter, userList *[]org.OrgUser) (
	totalElements int64, totalPages int64, err error,
)

func GetDictionMapByCode

func GetDictionMapByCode(code string) map[string]org.OrgDictionaryItem

根据code获取字段map 返回值是code dic

func GetDictionMapByCodeWithClientId

func GetDictionMapByCodeWithClientId(clientId string, code string) map[string]org.OrgDictionaryItem

手动切库根据code获取字段map 返回值是code dic

func GetDictionValueMapByCode

func GetDictionValueMapByCode(code string) map[string]org.OrgDictionaryItem

根据code获取字段map 返回值是value dic

func GetNodeMapByIds

func GetNodeMapByIds(ids []uint64) map[uint64]org.Node

func GetNodeMapByIdsWithClientId

func GetNodeMapByIdsWithClientId(ids []uint64, clientId string) map[uint64]org.Node

func GetUsersMapByIds

func GetUsersMapByIds(ids []uint64) map[uint64]org.OrgUser

func GetUsersMapByIdsWithClientId

func GetUsersMapByIdsWithClientId(ids []uint64, clientId string) map[uint64]org.OrgUser

Types

type WorkLocation

type WorkLocation struct {
	ID          int     `json:"id"`          //id
	Name        string  `json:"name"`        //id
	Country     string  `json:"country"`     //id
	City        string  `json:"city"`        //id
	Address     string  `json:"address"`     //id
	Longitude   float64 `json:"longitude"`   //id
	Latitude    float64 `json:"latitude"`    //id
	Description string  `json:"description"` //id
}

func FindWorkLocationByID

func FindWorkLocationByID(id int) WorkLocation

func FindWorkLocationByIDAndClientID

func FindWorkLocationByIDAndClientID(id int, clientID string) WorkLocation

Jump to

Keyboard shortcuts

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