initial rewrite, use micro v4 and not cms-xxx stuff #4
@@ -186,7 +186,7 @@ func URLValuesToProto(vals url.Values, msg proto.Message) error {
 | 
				
			|||||||
			continue
 | 
								continue
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		switch k {
 | 
							switch k {
 | 
				
			||||||
		case "id":
 | 
							case "id[]":
 | 
				
			||||||
			params[k] = v
 | 
								params[k] = v
 | 
				
			||||||
		default:
 | 
							default:
 | 
				
			||||||
			params[k] = v[0]
 | 
								params[k] = v[0]
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -30,7 +30,7 @@ func TestGetModule(t *testing.T) {
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	req := &pb.GetModuleReq{
 | 
						req := &pb.GetModuleReq{
 | 
				
			||||||
		ModulesId: []uint64{1, 2, 5, 40},
 | 
							Id: []uint64{1, 2, 5, 40},
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	module, err := s.GetModule(context.Background(), req)
 | 
						module, err := s.GetModule(context.Background(), req)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user