domain_service.go 411 字节
package factory

import (
	"gitlab.fjmaimaimai.com/mmm-go/partner/pkg/constant"
	"gitlab.fjmaimaimai.com/mmm-go/partner/pkg/domain/service"
	"gitlab.fjmaimaimai.com/mmm-go/partner/pkg/infrastructure/svr"
)

func CreateSmsCodeService() (service.SmsCodeService, error) {
	if constant.SERVICE_RUNMOD == "dev" {
		return svr.NewHttplibMmmSmsApiEmpty(), nil
	}
	return svr.NewHttplibMmmSmsApiServiceGateway(), nil
}