Blame view

service-community/src/main/java/com/java110/community/api/ParkApi.java 1.01 KB
88e030b7   王彪总   init project
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  package com.java110.community.api;
  
  
  import com.alibaba.fastjson.JSONObject;
  import com.java110.community.bmo.park.IQueryParkSpace;
  import com.java110.utils.util.Assert;
  import org.springframework.beans.factory.annotation.Autowired;
  import org.springframework.http.ResponseEntity;
  import org.springframework.web.bind.annotation.RequestBody;
  import org.springframework.web.bind.annotation.RequestMapping;
  import org.springframework.web.bind.annotation.RequestMethod;
  import org.springframework.web.bind.annotation.RestController;
  
  @RestController
  @RequestMapping(value = "/ParkAPI")
  public class ParkApi {
  
      @Autowired
      private IQueryParkSpace queryParkSpaceImpl;
  
      /**
       * @path /ParkAPI/PackSpace
       * @param reqJson
       * @return
       */
      @RequestMapping(value = "/PackSpace", method = RequestMethod.POST)
      public ResponseEntity<String> packSpace(@RequestBody JSONObject reqJson) {
9750b443   王彪总   fix(config): 更新配置...
28
          Assert.hasKeyAndValue(reqJson, "code", "未包含项目ID");
88e030b7   王彪总   init project
29
30
31
          return queryParkSpaceImpl.query(reqJson);
      }
  }