/** * 获得一条招聘详细信息 参数:recruitId * * @return:Recruit 一条招聘详细信息 */ @Action( value = "getOneRecruit", results = {@Result(name = "success", type = "json")}) public String getOneRecruit() { Map<String, Object> map = this.recruitService.getOneRecruit(recruitId); SendJson.send(ServletActionContext.getResponse(), map); return SUCCESS; }
/** * 获得招聘列表 参数:pageNum,pageSize * * @return:RecruitList招聘列表 */ @Action( value = "getRecruitList", results = {@Result(name = "success", type = "json")}) public String getRecruitList() { pageInfo = this.setValuePageInfo(pageNum, pageSize); Map<String, Object> map = this.recruitService.getRecruitList(pageInfo); SendJson.send(ServletActionContext.getResponse(), map); return SUCCESS; }