httplib_chart-editor_gateway.go 1.0 KB
package chart_editor

import (
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/constant"
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/domain"
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/infrastructure/service_gateway"
	"time"
)

//HttpLibAlliedCreationManufacture 生产制造模块
type HttpLibAlliedChartEditor struct {
	service_gateway.BaseServiceGateway
	baseUrL string
}

func NewHttpLibAlliedChartEditor(operator domain.Operator) *HttpLibAlliedChartEditor {
	return &HttpLibAlliedChartEditor{
		BaseServiceGateway: service_gateway.BaseServiceGateway{
			ConnectTimeout:   100 * time.Second,
			ReadWriteTimeout: 100 * time.Second,
			CompanyId:        operator.CompanyId,
			OrgId:            operator.OrgId,
			InOrgIds:         operator.OrgIds,
			UserId:           operator.UserId,
			UserBaseId:       operator.UserBaseId,
		},
		baseUrL: constant.ALLIED_CREATION_REPORTING_SYSTEM,
	}

}

func (gateway HttpLibAlliedChartEditor) BaseUrl() string {
	return gateway.baseUrL
}