|
@ -41,14 +41,14 @@ public class AdvertisementPuttingAdminEndPoint extends EnvelopRestEndpoint {
|
|
|
}
|
|
|
@GetMapping(value = "/single")
|
|
|
@ApiOperation(value = "获取单条广告信息")
|
|
|
public Envelop doctorHosplist(
|
|
|
public Envelop single(
|
|
|
@ApiParam(name = "id", value = "广告id")
|
|
|
@RequestParam(value = "id", required = true) String id) throws Exception {
|
|
|
JSONObject jsonObject = advrtisementService.getOneAdvInfo(id);
|
|
|
if (jsonObject.getString("response").equalsIgnoreCase(ConstantUtils.FAIL)) {
|
|
|
return failed(jsonObject.getString("msg"));
|
|
|
}
|
|
|
return success(jsonObject.getJSONObject("msg"));
|
|
|
return success(jsonObject.getString("msg"),200,jsonObject.getJSONObject("obj"));
|
|
|
}
|
|
|
|
|
|
|