interface.go 913 字节
package service_gateway

import "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/infrastructure/service_gateway/translator"

type UserServiceGateway interface {
	GetUser(companyId int64, orgId int64, uid int64) (*translator.UserDetail, error)
	GetUsers(companyId int64, orgId int64, uids []int64) (map[string]interface{}, error)
	GetCompany(companyId int64) (*translator.CompanyDetail, error)
	GetOrganization(companyId int64, organizationId int64) (*translator.OrganizationDetail, error)
	GetDepartment(companyId int64, departmentId int64) (map[string]interface{}, error)
	UserInMenu(companyId int64, userId int64, menuCode string) (bool, error)
	UserInOrganization(companyId int64, orgId int64, userId int64) (bool, error)
}

type MessageServiceGateway interface {
	PushMessage(msgType int, projects []string, uids []int64, title string, content string) (map[string]interface{}, error)
}