interface.go 2.3 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 BasicServiceGateway interface {
	AgreeCooperationApplication(creationProjectId int64, creationProjectName string, creationProjectNumber string, userId int64, userBaseId int64, orgId int64, companyId int64) (map[string]interface{}, error)
	RejectCooperationApplication(creationProjectId int64, creationProjectName string, creationProjectNumber string, userId int64, userBaseId int64, orgId int64, companyId int64) (map[string]interface{}, error)
	InformDividendsExpected(creationContractId int64, creationContractName string, creationContractNumber string, creationProjectId int64, creationProjectName string, creationProjectNumber string, productName string, userId int64, userBaseId int64, orgId int64, companyId int64, dividendsEstimateId int64, dividendsAmount string) (map[string]interface{}, error)
	InformJoinCreationContract(creationContractId int64, creationContractName string, creationContractNumber string, creationProjectId int64, creationProjectNumber string, creationProjectName string, userId int64, userBaseId int64, orgId int64, companyId int64) (map[string]interface{}, error)
	PayCreditAccount(creditAccountOrderNum string, settlementAmount string, actuallyPaidAmount string, creditAccountId int64, userId int64, userBaseId int64, orgId int64, companyId int64) (map[string]interface{}, error)
	DividendsEstimate(creditAccountOrderNum string, settlementAmount string, creditAccountId int64, dividendsEstimateId int64, dividendsEstimateOrderNumber string, userId int64, userBaseId int64, orgId int64, companyId int64) (map[string]interface{}, error)
}