| | |
| | | |
| | | import com.se.simu.domain.po.DataPo; |
| | | import com.se.simu.domain.vo.R; |
| | | import com.se.simu.helper.ShpHelper; |
| | | import com.se.simu.helper.StringHelper; |
| | | import com.se.simu.service.GedbService; |
| | | import com.se.simu.service.ResultService; |
| | |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation(value = "testToken *") |
| | | @GetMapping("/testToken") |
| | | public R<Object> testToken() { |
| | | try { |
| | | String token = gedbService.getToken(); |
| | | |
| | | return success(token); |
| | | } catch (Exception ex) { |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation(value = "testPolygonize *") |
| | | @GetMapping("/testPolygonize") |
| | | public R<Object> testPolygonize() { |
| | | try { |
| | | ShpHelper.test(); |
| | | |
| | | return success("ok"); |
| | | } catch (Exception ex) { |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | } |