All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.haoxuer.discover.area.controller.rest.AreaRestController Maven / Gradle / Ivy

There is a newer version: 3.3.18-20230117
Show newest version
package com.haoxuer.discover.area.controller.rest;


import com.haoxuer.discover.area.rest.api.AreaHandler;
import com.haoxuer.discover.area.rest.domain.request.AreaCodeRequest;
import com.haoxuer.discover.area.rest.domain.request.AreaLevelRequest;
import com.haoxuer.discover.area.rest.domain.request.AreaListRequest;
import com.haoxuer.discover.area.rest.domain.request.AreaTypeRequest;
import com.haoxuer.discover.area.rest.domain.response.list.AreaDataList;
import com.haoxuer.discover.area.rest.domain.response.list.AreaList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "rest")
public class AreaRestController {


  @RequestMapping(value = "/area/list")
  public AreaList list(AreaListRequest request) {
    return hander.list(request);
  }

  @RequestMapping(value = "/area/id")
  public AreaDataList id(AreaListRequest request) {
    return hander.id(request);
  }

  @RequestMapping(value = "/area/type")
  public AreaList type(AreaTypeRequest request) {
    return hander.type(request);
  }

  @RequestMapping(value = "/area/listbycode")
  public AreaList list(AreaCodeRequest request) {
    return hander.list(request);
  }

  @RequestMapping(value = "/area/level")
  public AreaList level(AreaLevelRequest request) {
    return hander.level(request);
  }

  @RequestMapping(value = "/area/code")
  public AreaDataList code(AreaCodeRequest request) {
    return hander.code(request);
  }

  @Autowired
  private AreaHandler hander;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy