/// <summary> /// 批量创建场景分线 /// </summary> /// <param name="create"></param> /// <returns></returns> public virtual async Task <BatchCreateZoneLineResponse> BatchCreateZoneLine(BatchCreateZoneLineRequest create) { BatchCreateZoneLineResponse response = new BatchCreateZoneLineResponse(); response.zoneList = new List <ZoneInfoSnap>(); foreach (var item in create.zoneList) { var result = await CreateZone(item); ZoneInfoSnap zone = new ZoneInfoSnap(); zone.lineIndex = GetZone(result.zoneUUID).lineIndex; zone.TemplateID = result.TemplateID; zone.uuid = result.zoneUUID; response.zoneList.Add(zone); } return(response); }
public virtual Task <BatchCreateZoneLineResponse> logic_rpc_Handle(BatchCreateZoneLineRequest create) { //log.Info(create); return(BatchCreateZoneLine(create)); }