package consumers func GetConsumer(name string) (consumer IConsumer) { switch name { case "consumerCQZG": //重庆资管 consumer = new(consumerCQZG) case "consumerHTJC": //湖南湘潭 consumer = new(consumerHTJC) case "consumerMYX": //明月峡 consumer = new(consumerMYX) case "consumerCDJYSN": //明月峡 consumer = new(consumerCDJYSN) case "consumerWJHP": //魏家滑坡-视觉位移(光电扰度) consumer = new(consumerWJHP) case "consumerGZGZM": //工迅-广州高支模平台 consumer = new(consumerGZGZM) default: consumer = nil } return consumer }