interface.go 1.1 KB
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) (*translator.DepartmentDetail, error)
	UserInMenu(companyId int64, userId int64, menuCode string) (bool, error)
	UserInOrganization(companyId int64, orgId int64, userId int64) (bool, error)
}

type MessageServiceGateway interface {
	AgreeCooperationApplication() (map[string]interface{}, error)
	RejectCooperationApplication() (map[string]interface{}, error)
	InformExpectedDividends() (map[string]interface{}, error)
	InformJoinCreationContract() (map[string]interface{}, error)
	PayCreditAccount() (map[string]interface{}, error)
	DividendsEstimate() (map[string]interface{}, error)
}