|
@ -6,14 +6,13 @@ import lombok.extern.slf4j.Slf4j; |
|
|
import org.jeecg.common.api.vo.Result; |
|
|
import org.jeecg.common.api.vo.Result; |
|
|
import org.jeecg.modules.apiBean.PageBean; |
|
|
import org.jeecg.modules.apiBean.PageBean; |
|
|
import org.jeecg.modules.apiService.IndexApiService; |
|
|
import org.jeecg.modules.apiService.IndexApiService; |
|
|
|
|
|
import org.jeecg.modules.apiService.OrderApiService; |
|
|
import org.jeecg.modules.travelAdvance.entity.TravelAdvance; |
|
|
import org.jeecg.modules.travelAdvance.entity.TravelAdvance; |
|
|
import org.jeecg.modules.travelCollection.entity.TravelCollection; |
|
|
import org.jeecg.modules.travelCollection.entity.TravelCollection; |
|
|
import org.jeecg.modules.travelShopcar.entity.TravelShopcar; |
|
|
import org.jeecg.modules.travelShopcar.entity.TravelShopcar; |
|
|
import org.jeecg.modules.travelVolunteer.entity.TravelVolunteer; |
|
|
import org.jeecg.modules.travelVolunteer.entity.TravelVolunteer; |
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMethod; |
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
|
import org.jeecg.modules.travelWaresOrder.entity.TravelWaresOrder; |
|
|
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
import javax.annotation.Resource; |
|
|
|
|
|
|
|
@ -24,11 +23,15 @@ import javax.annotation.Resource; |
|
|
@Slf4j |
|
|
@Slf4j |
|
|
public class IndexApiController { |
|
|
public class IndexApiController { |
|
|
|
|
|
|
|
|
|
|
|
//首页相关接口 |
|
|
@Resource |
|
|
@Resource |
|
|
private IndexApiService indexApiService; |
|
|
private IndexApiService indexApiService; |
|
|
|
|
|
|
|
|
//获取小程序任一文章或服务 |
|
|
|
|
|
|
|
|
//订单相关接口 |
|
|
|
|
|
@Resource |
|
|
|
|
|
private OrderApiService orderApiService; |
|
|
|
|
|
|
|
|
|
|
|
/**************首页*********************/ |
|
|
//获取banner图列表 |
|
|
//获取banner图列表 |
|
|
@ApiOperation(value="小程序-获取banner图列表", notes="0-首页 1-遗产路径 2-我要跟拍 3-非遗体验 4-无忧服务 5-申遗历程") |
|
|
@ApiOperation(value="小程序-获取banner图列表", notes="0-首页 1-遗产路径 2-我要跟拍 3-非遗体验 4-无忧服务 5-申遗历程") |
|
|
@GetMapping() |
|
|
@GetMapping() |
|
@ -37,58 +40,150 @@ public class IndexApiController { |
|
|
return indexApiService.queryBannerList(bannerCategoryType); |
|
|
return indexApiService.queryBannerList(bannerCategoryType); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
//获取小程序任一文章或服务 |
|
|
|
|
|
@ApiOperation(value="小程序-首页搜索栏", notes="小程序-根据标题模糊查询文章") |
|
|
|
|
|
@RequestMapping(value = "/queryArticleListByTitle", method = {RequestMethod.GET}) |
|
|
|
|
|
public Result<?> queryArticleListByTitle(String articleTitle, PageBean pageBean){ |
|
|
|
|
|
return indexApiService.queryArticleListByTitle(articleTitle, pageBean); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//根据角色id获取视频列表 |
|
|
|
|
|
@ApiOperation(value="小程序-根据角色id获取视频列表", notes="小程序-根据角色id获取视频列表") |
|
|
|
|
|
|
|
|
//根据角色id获取视频列表带分页 |
|
|
|
|
|
@ApiOperation(value="首页-根据角色id获取视频列表", notes="首页-根据角色id获取视频列表") |
|
|
@RequestMapping(value = "/queryVedioById", method = {RequestMethod.GET}) |
|
|
@RequestMapping(value = "/queryVedioById", method = {RequestMethod.GET}) |
|
|
public Result<?> queryVedioById(String roleInfoId, PageBean pageBean){ |
|
|
public Result<?> queryVedioById(String roleInfoId, PageBean pageBean){ |
|
|
return indexApiService.queryVedioById(roleInfoId, pageBean); |
|
|
return indexApiService.queryVedioById(roleInfoId, pageBean); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//根据id给视频点赞 |
|
|
//根据id给视频点赞 |
|
|
@ApiOperation(value="小程序-根据id给视频点赞", notes="小程序-根据id给视频点赞") |
|
|
|
|
|
|
|
|
@ApiOperation(value="首页-根据id给视频点赞", notes="首页-根据id给视频点赞") |
|
|
@RequestMapping(value = "/addThumpup", method = {RequestMethod.POST}) |
|
|
@RequestMapping(value = "/addThumpup", method = {RequestMethod.POST}) |
|
|
public Result<?> addThumpup(String videoId){ |
|
|
public Result<?> addThumpup(String videoId){ |
|
|
return indexApiService.addThumpup(videoId); |
|
|
return indexApiService.addThumpup(videoId); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//根据分类获取文章列表 |
|
|
|
|
|
@ApiOperation(value="小程序-根据标题模糊查询文章", notes="小程序-根据标题模糊查询文章") |
|
|
|
|
|
@RequestMapping(value = "/queryArticleListByTitle", method = {RequestMethod.GET}) |
|
|
|
|
|
public Result<?> queryArticleListByTitle(String articleTitle, PageBean pageBean){ |
|
|
|
|
|
return indexApiService.queryArticleListByTitle(articleTitle, pageBean); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************申遗历程*********************/ |
|
|
//根据分类获取文章列表 |
|
|
//根据分类获取文章列表 |
|
|
@ApiOperation(value="小程序-根据分类获取文章列表", notes="0-申遗历程 1-申遗缘由 2-遗产价值") |
|
|
|
|
|
|
|
|
@ApiOperation(value="申遗历程-根据分类获取文章列表", notes="0-申遗历程 1-申遗缘由 2-遗产价值") |
|
|
@RequestMapping(value = "/queryArticleListByType", method = {RequestMethod.GET}) |
|
|
@RequestMapping(value = "/queryArticleListByType", method = {RequestMethod.GET}) |
|
|
public Result<?> queryArticleListByType(String articleType, PageBean pageBean){ |
|
|
public Result<?> queryArticleListByType(String articleType, PageBean pageBean){ |
|
|
return indexApiService.queryArticleListByType(articleType, pageBean); |
|
|
return indexApiService.queryArticleListByType(articleType, pageBean); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//根据id获取文章详情 |
|
|
//根据id获取文章详情 |
|
|
@ApiOperation(value="小程序-根据id获取文章详情", notes="小程序-根据id获取文章详情") |
|
|
|
|
|
|
|
|
@ApiOperation(value="申遗历程-根据id获取文章详情", notes="申遗历程-根据id获取文章详情") |
|
|
@RequestMapping(value = "/queryArticleById", method = {RequestMethod.GET}) |
|
|
@RequestMapping(value = "/queryArticleById", method = {RequestMethod.GET}) |
|
|
public Result<?> queryArticleById(String articleId){ |
|
|
public Result<?> queryArticleById(String articleId){ |
|
|
return indexApiService.queryArticleById(articleId); |
|
|
return indexApiService.queryArticleById(articleId); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/**************遗产概况*********************/ |
|
|
//获取景区列表 |
|
|
//获取景区列表 |
|
|
@ApiOperation(value="小程序-获取景区列表", notes="小程序-获取景区列表") |
|
|
|
|
|
|
|
|
@ApiOperation(value="遗产概况-获取景区列表", notes="遗产概况-获取景区列表") |
|
|
@RequestMapping(value = "/queryAreaList", method = {RequestMethod.GET}) |
|
|
@RequestMapping(value = "/queryAreaList", method = {RequestMethod.GET}) |
|
|
public Result<?> queryAreaList(PageBean pageBean){ |
|
|
public Result<?> queryAreaList(PageBean pageBean){ |
|
|
return indexApiService.queryAreaList(pageBean); |
|
|
return indexApiService.queryAreaList(pageBean); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//获取景区详情 |
|
|
//获取景区详情 |
|
|
@ApiOperation(value="小程序-根据id获取景区详情", notes="小程序-根据id获取景区详情") |
|
|
|
|
|
|
|
|
@ApiOperation(value="遗产概况-根据id获取景区详情", notes="遗产概况-根据id获取景区详情") |
|
|
@RequestMapping(value = "/queryAreaListById", method = {RequestMethod.GET}) |
|
|
@RequestMapping(value = "/queryAreaListById", method = {RequestMethod.GET}) |
|
|
public Result<?> queryAreaListById(String areaId){ |
|
|
public Result<?> queryAreaListById(String areaId){ |
|
|
return indexApiService.queryAreaListById(areaId); |
|
|
return indexApiService.queryAreaListById(areaId); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/**************遗产讲述/达人同游/我要跟拍*********************/ |
|
|
|
|
|
//根据角色类型获取角色信息列表-讲解员/达人/摄影师 |
|
|
|
|
|
@ApiOperation(value="遗产讲述&&达人同游&&我要跟拍-根据角色类型获取角色信息列表", notes="level: 1-金牌讲解员, 2-专业讲解员; roleId: 0-讲解员,1-达人,2-摄影师") |
|
|
|
|
|
@RequestMapping(value = "/queryRoleInfoList", method = {RequestMethod.GET}) |
|
|
|
|
|
public Result<?> queryRoleInfoList(String roleId, String level, String spot, PageBean pageBean){ |
|
|
|
|
|
return indexApiService.queryRoleInfoList(roleId, level, spot, pageBean); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//根据角色id获取角色信息详情 |
|
|
|
|
|
@ApiOperation(value="遗产讲述&&达人同游&&我要跟拍-根据角色Id获取角色信息详情", notes="遗产讲述/达人同游/我要更拍-根据角色Id获取角色信息详情") |
|
|
|
|
|
@RequestMapping(value = "/queryRoleInfoById", method = {RequestMethod.GET}) |
|
|
|
|
|
public Result<?> queryRoleInfoById(String roleInfoId){ |
|
|
|
|
|
return indexApiService.queryRoleInfoById(roleInfoId); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/**************遗产路径/我要研学*********************/ |
|
|
|
|
|
//遗产路径/我要研学列表 |
|
|
|
|
|
@ApiOperation(value="遗产路径&&我要研学列表-获取游玩项目列表", notes="amusementType:0-遗产路径 1-我要研学;isPay:0-免费 1-付费") |
|
|
|
|
|
@RequestMapping(value = "/queryAmusementList", method = {RequestMethod.GET}) |
|
|
|
|
|
public Result<?> queryAmusementList(String amusementType, String isPay, PageBean pageBean){ |
|
|
|
|
|
return indexApiService.queryAmusementList(amusementType, isPay, pageBean); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//遗产路径/我要研学详情 |
|
|
|
|
|
@ApiOperation(value="遗产路径&&我要研学列表-根据id获取游玩项目详情", notes="遗产路径/我要研学列表-根据id获取游玩项目详情") |
|
|
|
|
|
@RequestMapping(value = "/queryAmusementById", method = {RequestMethod.GET}) |
|
|
|
|
|
public Result<?> queryAmusementById(String amusementId){ |
|
|
|
|
|
return indexApiService.queryAmusementById(amusementId); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/**************非遗体验*********************/ |
|
|
|
|
|
//非遗列表 |
|
|
|
|
|
@ApiOperation(value="非遗体验-获取非遗体验列表", notes="非遗体验-获取非遗体验列表") |
|
|
|
|
|
@RequestMapping(value = "/queryExperienceList", method = {RequestMethod.GET}) |
|
|
|
|
|
public Result<?> queryExperienceList(PageBean pageBean){ |
|
|
|
|
|
return indexApiService.queryExperienceList(pageBean); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//非遗体验详情 |
|
|
|
|
|
@ApiOperation(value="非遗体验-根据id获取非遗体验详情", notes="非遗体验-根据id获取非遗体验详情") |
|
|
|
|
|
@RequestMapping(value = "/queryExperienceById", method = {RequestMethod.GET}) |
|
|
|
|
|
public Result<?> queryExperienceById(String experienceId){ |
|
|
|
|
|
return indexApiService.queryExperienceById(experienceId); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/**************文创好物*********************/ |
|
|
|
|
|
//获取文创好物列表 |
|
|
|
|
|
@ApiOperation(value="文创好物-获取商品列表", notes="文创好物-获取商品列表") |
|
|
|
|
|
@RequestMapping(value = "/queryWaresList", method = {RequestMethod.GET}) |
|
|
|
|
|
public Result<?> queryWaresList(PageBean pageBean){ |
|
|
|
|
|
return indexApiService.queryWaresList(pageBean); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//获取文创好物详情 |
|
|
|
|
|
@ApiOperation(value="文创好物-获取商品详情", notes="文创好物-获取商品详情") |
|
|
|
|
|
@RequestMapping(value = "/queryWaresById", method = {RequestMethod.GET}) |
|
|
|
|
|
public Result<?> queryWaresById(String waresId){ |
|
|
|
|
|
return indexApiService.queryWaresById(waresId); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//查询文创好物订单信息 |
|
|
|
|
|
@ApiOperation(value="文创好物-查询文创好物订单列表", notes="文创好物-查询文创好物订单列表") |
|
|
|
|
|
@RequestMapping(value = "/queryWaresOrderList", method = {RequestMethod.GET}) |
|
|
|
|
|
public Result<?> queryWaresOrderList(@RequestHeader("X-Access-Token") String token, PageBean pageBean){ |
|
|
|
|
|
return indexApiService.queryWaresOrderList(token, pageBean); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//创建文创好物订单 |
|
|
|
|
|
@ApiOperation(value = "文创好物-创建文创好物订单",notes = "文创好物-创建文创好物订单") |
|
|
|
|
|
@PostMapping("/addWaresOrder") |
|
|
|
|
|
public Result<?> addWaresOrder(@RequestHeader("X-Access-Token") String token, TravelWaresOrder travelWaresOrder){ |
|
|
|
|
|
return indexApiService.addWaresOrder(token, travelWaresOrder); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//立即支付 |
|
|
|
|
|
@ApiOperation(value = "立即支付",notes = "立即支付") |
|
|
|
|
|
@PostMapping("/payOrder") |
|
|
|
|
|
public Result<?> payOrder(){ |
|
|
|
|
|
return orderApiService.payOrder(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/**************我要帮助*********************/ |
|
|
|
|
|
//我要帮助 |
|
|
|
|
|
@ApiOperation(value="首页-我要帮助", notes="添加问题和意见") |
|
|
|
|
|
@RequestMapping(value = "/addAdvice", method = {RequestMethod.POST}) |
|
|
|
|
|
public Result<?> addAdvice(TravelAdvance travelAdvance){ |
|
|
|
|
|
return indexApiService.addAdvice(travelAdvance); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/**************导览*********************/ |
|
|
//根据景区id获取该景区下的地点列表-景点/厕所/美食店铺/民宿 |
|
|
//根据景区id获取该景区下的地点列表-景点/厕所/美食店铺/民宿 |
|
|
@ApiOperation(value="小程序-获取该景区下的地点列表", notes="areaId: 0-瓷都镇区 1-湖田片区 2-高岭片区 3-瑶里片区 4-蛟潭片区; categoryId: 0-景点 1-美食店铺 2-民宿 3-厕所") |
|
|
|
|
|
|
|
|
@ApiOperation(value="导览-获取该景区下的地点列表", notes="areaId: 0-瓷都镇区 1-湖田片区 2-高岭片区 3-瑶里片区 4-蛟潭片区; categoryId: 0-景点 1-美食店铺 2-民宿 3-厕所") |
|
|
@RequestMapping(value = "/querySpotList", method = {RequestMethod.GET}) |
|
|
@RequestMapping(value = "/querySpotList", method = {RequestMethod.GET}) |
|
|
public Result<?> querySpotList(String areaId, String categoryId, PageBean pageBean){ |
|
|
public Result<?> querySpotList(String areaId, String categoryId, PageBean pageBean){ |
|
|
return indexApiService.querySpotList(areaId, categoryId, pageBean); |
|
|
return indexApiService.querySpotList(areaId, categoryId, pageBean); |
|
@ -105,6 +200,7 @@ public class IndexApiController { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//添加购物车 |
|
|
//添加购物车 |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -116,20 +212,5 @@ public class IndexApiController { |
|
|
|
|
|
|
|
|
//无忧租车-链接滴滴打车 |
|
|
//无忧租车-链接滴滴打车 |
|
|
|
|
|
|
|
|
//我要帮助 |
|
|
|
|
|
@ApiOperation(value="小程序-我要帮助", notes="添加问题和意见") |
|
|
|
|
|
@RequestMapping(value = "/addAdvice", method = {RequestMethod.POST}) |
|
|
|
|
|
public Result<?> addAdvice(TravelAdvance travelAdvance){ |
|
|
|
|
|
return indexApiService.addAdvice(travelAdvance); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/*************************我的***********************************/ |
|
|
|
|
|
//添加志愿者 |
|
|
|
|
|
@ApiOperation(value="小程序-添加志愿者", notes="小程序-添加志愿者") |
|
|
|
|
|
@RequestMapping(value = "/addVolunteer", method = {RequestMethod.POST}) |
|
|
|
|
|
public Result<?> addVolunteer(TravelVolunteer travelVolunteer){ |
|
|
|
|
|
return indexApiService.addVolunteer(travelVolunteer); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |