|
@@ -132,18 +132,18 @@ public class EndToEndBusinessFlowTest extends GatewayBaseTest {
|
|
|
mockMvc.perform(post("/api/business-license/upload")
|
|
mockMvc.perform(post("/api/business-license/upload")
|
|
|
.header("Authorization", "Bearer " + userToken)
|
|
.header("Authorization", "Bearer " + userToken)
|
|
|
.contentType(MediaType.APPLICATION_JSON)
|
|
.contentType(MediaType.APPLICATION_JSON)
|
|
|
- .content(objectMapper.writeValueAsString(Map.of(
|
|
|
|
|
- "storeName", "测试大药房",
|
|
|
|
|
- "terminalType", "SINGLE",
|
|
|
|
|
- "province", "广东省",
|
|
|
|
|
- "city", "深圳市",
|
|
|
|
|
- "district", "南山区",
|
|
|
|
|
- "storeAddress", "科技园路1号",
|
|
|
|
|
- "contactPerson", "张三",
|
|
|
|
|
- "contactPhone", "13800138001",
|
|
|
|
|
- "businessLicenseUrl", "https://oss.example.com/license/test.jpg",
|
|
|
|
|
- "drugLicenseUrl", "https://oss.example.com/drug/test.jpg",
|
|
|
|
|
- "creditCode", "91110000XXXXXXXXXX"
|
|
|
|
|
|
|
+ .content(objectMapper.writeValueAsString(Map.ofEntries(
|
|
|
|
|
+ Map.entry("storeName", "测试大药房"),
|
|
|
|
|
+ Map.entry("terminalType", "SINGLE"),
|
|
|
|
|
+ Map.entry("province", "广东省"),
|
|
|
|
|
+ Map.entry("city", "深圳市"),
|
|
|
|
|
+ Map.entry("district", "南山区"),
|
|
|
|
|
+ Map.entry("storeAddress", "科技园路1号"),
|
|
|
|
|
+ Map.entry("contactPerson", "张三"),
|
|
|
|
|
+ Map.entry("contactPhone", "13800138001"),
|
|
|
|
|
+ Map.entry("businessLicenseUrl", "https://oss.example.com/license/test.jpg"),
|
|
|
|
|
+ Map.entry("drugLicenseUrl", "https://oss.example.com/drug/test.jpg"),
|
|
|
|
|
+ Map.entry("creditCode", "91110000XXXXXXXXXX")
|
|
|
))))
|
|
))))
|
|
|
.andExpect(status().isOk());
|
|
.andExpect(status().isOk());
|
|
|
|
|
|