|  |  | @ -10,14 +10,13 @@ import org.jeecg.modules.hanHaiMember.entity.HanHaiMember; | 
			
		
	
		
			
				
					|  |  |  | import org.jeecg.modules.travelAddress.entity.TravelAddress; | 
			
		
	
		
			
				
					|  |  |  | import org.jeecg.modules.travelCollection.entity.TravelCollection; | 
			
		
	
		
			
				
					|  |  |  | import org.jeecg.modules.travelShopcar.entity.TravelShopcar; | 
			
		
	
		
			
				
					|  |  |  | import org.springframework.web.bind.annotation.RequestHeader; | 
			
		
	
		
			
				
					|  |  |  | 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.travelVolunteer.entity.TravelVolunteer; | 
			
		
	
		
			
				
					|  |  |  | import org.jeecg.modules.travelWaresOrder.entity.TravelWaresOrder; | 
			
		
	
		
			
				
					|  |  |  | import org.springframework.web.bind.annotation.*; | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | import javax.annotation.Resource; | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | @Api(tags="小程序-用户信息相关接口") | 
			
		
	
		
			
				
					|  |  |  | @Api(tags="小程序-个人中心相关接口") | 
			
		
	
		
			
				
					|  |  |  | @RestController | 
			
		
	
		
			
				
					|  |  |  | @RequestMapping("/api/user") | 
			
		
	
		
			
				
					|  |  |  | @Slf4j | 
			
		
	
	
		
			
				
					|  |  | @ -26,90 +25,145 @@ public class UserInfoApiController { | 
			
		
	
		
			
				
					|  |  |  | @Resource | 
			
		
	
		
			
				
					|  |  |  | private IndexApiService indexApiService; | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | //根据角色类型获取角色信息列表-讲解员/达人/摄影师 | 
			
		
	
		
			
				
					|  |  |  | @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); | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | /*******************个人信息****************************/ | 
			
		
	
		
			
				
					|  |  |  | //获取个人信息接口 | 
			
		
	
		
			
				
					|  |  |  | @ApiOperation(value="个人信息-查询用户个人信息", notes="个人信息-查询用户个人信息") | 
			
		
	
		
			
				
					|  |  |  | @RequestMapping(value = "/queryHanHaiMemberById", method = {RequestMethod.GET}) | 
			
		
	
		
			
				
					|  |  |  | public Result<?> queryHanHaiMemberById(@RequestHeader("X-Access-Token") String token){ | 
			
		
	
		
			
				
					|  |  |  | return indexApiService.queryHanHaiMemberById(token); | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | //根据角色id获取角色信息详情 | 
			
		
	
		
			
				
					|  |  |  | @ApiOperation(value="小程序-根据角色Id获取角色信息详情", notes="小程序-根据角色Id获取角色信息详情") | 
			
		
	
		
			
				
					|  |  |  | @RequestMapping(value = "/queryRoleInfoById", method = {RequestMethod.GET}) | 
			
		
	
		
			
				
					|  |  |  | public Result<?> queryRoleInfoById(String roleInfoId){ | 
			
		
	
		
			
				
					|  |  |  | return indexApiService.queryRoleInfoById(roleInfoId); | 
			
		
	
		
			
				
					|  |  |  | //修改个人信息接口 | 
			
		
	
		
			
				
					|  |  |  | @ApiOperation(value="个人信息-修改用户个人信息", notes="个人信息-修改用户个人信息") | 
			
		
	
		
			
				
					|  |  |  | @RequestMapping(value = "/updateHanHaiMemberById", method = {RequestMethod.POST}) | 
			
		
	
		
			
				
					|  |  |  | public Result<?> queryHanHaiMemberById(@RequestHeader("X-Access-Token") String token, HanHaiMember hanHaiMember){ | 
			
		
	
		
			
				
					|  |  |  | return indexApiService.updateHanHaiMemberById(token, hanHaiMember); | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | /*****************************************************个人中心*********************************************************************/ | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | /*******************我的收藏****************************/ | 
			
		
	
		
			
				
					|  |  |  | //获取我的收藏列表 | 
			
		
	
		
			
				
					|  |  |  | @ApiOperation(value="我的收藏-获取我的收藏列表", notes="collectionType:0-遗产讲述 1-达人同游 2-遗产路径 3-我要跟拍 4-非遗体验 5-我要研学 6-文创好物") | 
			
		
	
		
			
				
					|  |  |  | @RequestMapping(value = "/queryCollectionList", method = {RequestMethod.GET}) | 
			
		
	
		
			
				
					|  |  |  | public Result<?> queryCollectionList(@RequestHeader("X-Access-Token") String token, String collectionType, PageBean pageBean){ | 
			
		
	
		
			
				
					|  |  |  | return indexApiService.queryCollectionList(token, collectionType, pageBean); | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | //添加收藏 | 
			
		
	
		
			
				
					|  |  |  | @ApiOperation(value="我的收藏-添加收藏", notes="我的收藏-添加收藏") | 
			
		
	
		
			
				
					|  |  |  | @RequestMapping(value = "/addCollection", method = {RequestMethod.POST}) | 
			
		
	
		
			
				
					|  |  |  | public Result<?> addCollection(@RequestHeader("X-Access-Token") String token, TravelCollection travelCollection){ | 
			
		
	
		
			
				
					|  |  |  | return indexApiService.addCollection(token, travelCollection); | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | //取消收藏 | 
			
		
	
		
			
				
					|  |  |  | @ApiOperation(value="我的收藏-取消收藏", notes="我的收藏-取消收藏") | 
			
		
	
		
			
				
					|  |  |  | @RequestMapping(value = "/deleteCollection", method = {RequestMethod.POST}) | 
			
		
	
		
			
				
					|  |  |  | public Result<?> deleteCollection(@RequestHeader("X-Access-Token") String token, String collectionType, String collectionId){ | 
			
		
	
		
			
				
					|  |  |  | return indexApiService.deleteCollection(token, collectionType, collectionId); | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | /*******************我的预约****************************/ | 
			
		
	
		
			
				
					|  |  |  | //时间段查询 | 
			
		
	
		
			
				
					|  |  |  | @ApiOperation(value="我的预约-查询预约时间段", notes="timeType:0-上午 1-下午") | 
			
		
	
		
			
				
					|  |  |  | @RequestMapping(value = "/queryOrderTime", method = {RequestMethod.GET}) | 
			
		
	
		
			
				
					|  |  |  | public Result<?> queryOrderTime(String timeType){ | 
			
		
	
		
			
				
					|  |  |  | return indexApiService.queryOrderTime(timeType); | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | //查询订单信息 | 
			
		
	
		
			
				
					|  |  |  | @ApiOperation(value="我的预约-查询预约订单列表", notes="orderType:0-路径定制 1-遗产讲述 2-达人同游 3-我要跟拍 4-非遗体验 5-我要研学") | 
			
		
	
		
			
				
					|  |  |  | @RequestMapping(value = "/queryOrderList", method = {RequestMethod.GET}) | 
			
		
	
		
			
				
					|  |  |  | public Result<?> queryOrderList(@RequestHeader("X-Access-Token") String token, String  orderType, PageBean pageBean){ | 
			
		
	
		
			
				
					|  |  |  | return indexApiService.queryOrderList(token, orderType, pageBean); | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | /*******************我的订单****************************/ | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | //创建预约订单 | 
			
		
	
		
			
				
					|  |  |  | @ApiOperation(value = "我的预约-创建预约订单",notes = "我的预约-创建预约订单") | 
			
		
	
		
			
				
					|  |  |  | @PostMapping("/createOrder") | 
			
		
	
		
			
				
					|  |  |  | public Result<?> addOrder(@RequestHeader("X-Access-Token") String token, TravelWaresOrder travelWaresOrder){ | 
			
		
	
		
			
				
					|  |  |  | return indexApiService.addWaresOrder(token, travelWaresOrder); | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | /*******************我的地址****************************/ | 
			
		
	
		
			
				
					|  |  |  | //查询地址 | 
			
		
	
		
			
				
					|  |  |  | @ApiOperation(value="小程序-查询地址", notes="小程序-查询地址") | 
			
		
	
		
			
				
					|  |  |  | @ApiOperation(value="我的地址-查询地址", notes="我的地址-查询地址") | 
			
		
	
		
			
				
					|  |  |  | @RequestMapping(value = "/queryAddress", method = {RequestMethod.GET}) | 
			
		
	
		
			
				
					|  |  |  | public Result<?> queryAddress(@RequestHeader("X-Access-Token") String token, TravelAddress travelAddress, PageBean pageBean){ | 
			
		
	
		
			
				
					|  |  |  | return indexApiService.queryAddress(token, travelAddress, pageBean); | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | //新增地址 | 
			
		
	
		
			
				
					|  |  |  | @ApiOperation(value="小程序-新增地址", notes="小程序-新增地址") | 
			
		
	
		
			
				
					|  |  |  | @ApiOperation(value="我的地址-新增地址", notes="我的地址-新增地址") | 
			
		
	
		
			
				
					|  |  |  | @RequestMapping(value = "/addAddress", method = {RequestMethod.POST}) | 
			
		
	
		
			
				
					|  |  |  | public Result<?> addAddress(@RequestHeader("X-Access-Token") String token, TravelAddress travelAddress){ | 
			
		
	
		
			
				
					|  |  |  | return indexApiService.addAddress(token, travelAddress); | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | //删除地址 | 
			
		
	
		
			
				
					|  |  |  | @ApiOperation(value="小程序-删除地址", notes="小程序-删除地址") | 
			
		
	
		
			
				
					|  |  |  | @ApiOperation(value="我的地址-删除地址", notes="我的地址-删除地址") | 
			
		
	
		
			
				
					|  |  |  | @RequestMapping(value = "/deleteAddress", method = {RequestMethod.DELETE}) | 
			
		
	
		
			
				
					|  |  |  | public Result<?> deleteAddress(@RequestHeader("X-Access-Token") String token, String AddressId){ | 
			
		
	
		
			
				
					|  |  |  | return indexApiService.deleteAddress(token, AddressId); | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | //修改地址 | 
			
		
	
		
			
				
					|  |  |  | @ApiOperation(value="小程序-修改地址", notes="小程序-修改地址") | 
			
		
	
		
			
				
					|  |  |  | @ApiOperation(value="我的地址-修改地址", notes="我的地址-修改地址") | 
			
		
	
		
			
				
					|  |  |  | @RequestMapping(value = "/updateAddress", method = {RequestMethod.POST}) | 
			
		
	
		
			
				
					|  |  |  | public Result<?> updateAddress(@RequestHeader("X-Access-Token") String token, TravelAddress travelAddress){ | 
			
		
	
		
			
				
					|  |  |  | return indexApiService.updateAddress(token, travelAddress); | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | //修改默认地址 | 
			
		
	
		
			
				
					|  |  |  | @ApiOperation(value="小程序-修改默认地址", notes="小程序-修改默认地址") | 
			
		
	
		
			
				
					|  |  |  | @ApiOperation(value="我的地址-修改默认地址", notes="我的地址-修改默认地址") | 
			
		
	
		
			
				
					|  |  |  | @RequestMapping(value = "/updateDefaultAddress", method = {RequestMethod.POST}) | 
			
		
	
		
			
				
					|  |  |  | public Result<?> updateDefaultAddress(@RequestHeader("X-Access-Token") String token, String addressId){ | 
			
		
	
		
			
				
					|  |  |  | return indexApiService.updateDefaultAddress(token, addressId); | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | //我的收藏 | 
			
		
	
		
			
				
					|  |  |  | @ApiOperation(value="小程序-获取我的收藏列表", notes="collectionType:0-遗产讲述 1-达人同游 2-遗产路径 3-我要跟拍 4-非遗体验 5-我要研学 6-文创好物") | 
			
		
	
		
			
				
					|  |  |  | @RequestMapping(value = "/queryCollectionList", method = {RequestMethod.GET}) | 
			
		
	
		
			
				
					|  |  |  | public Result<?> queryCollectionList(@RequestHeader("X-Access-Token") String token, String collectionType, PageBean pageBean){ | 
			
		
	
		
			
				
					|  |  |  | return indexApiService.queryCollectionList(token, collectionType, pageBean); | 
			
		
	
		
			
				
					|  |  |  | /*******************我的购物车****************************/ | 
			
		
	
		
			
				
					|  |  |  | //获取购物车列表 | 
			
		
	
		
			
				
					|  |  |  | @ApiOperation(value="我的购物车-获取购物车列表", notes="我的购物车-获取购物车列表") | 
			
		
	
		
			
				
					|  |  |  | @RequestMapping(value = "/queryShopcarList", method = {RequestMethod.GET}) | 
			
		
	
		
			
				
					|  |  |  | public Result<?> queryShopcarList(@RequestHeader("X-Access-Token") String token, PageBean pageBean){ | 
			
		
	
		
			
				
					|  |  |  | return indexApiService.queryShopcarList(token, pageBean); | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | //添加收藏 | 
			
		
	
		
			
				
					|  |  |  | @ApiOperation(value="小程序-添加收藏", notes="小程序-添加收藏") | 
			
		
	
		
			
				
					|  |  |  | @RequestMapping(value = "/addCollection", method = {RequestMethod.POST}) | 
			
		
	
		
			
				
					|  |  |  | public Result<?> addCollection(@RequestHeader("X-Access-Token") String token, TravelCollection travelCollection){ | 
			
		
	
		
			
				
					|  |  |  | return indexApiService.addCollection(token, travelCollection); | 
			
		
	
		
			
				
					|  |  |  | //添加购物车 | 
			
		
	
		
			
				
					|  |  |  | @ApiOperation(value="我的购物车-添加购物车", notes="我的购物车-添加购物车") | 
			
		
	
		
			
				
					|  |  |  | @RequestMapping(value = "/addShopcar", method = {RequestMethod.POST}) | 
			
		
	
		
			
				
					|  |  |  | public Result<?> addShopcar(@RequestHeader("X-Access-Token") String token, TravelShopcar travelShopcar){ | 
			
		
	
		
			
				
					|  |  |  | return indexApiService.addShopcar(token,travelShopcar); | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | //取消收藏 | 
			
		
	
		
			
				
					|  |  |  | @ApiOperation(value="小程序-取消收藏", notes="小程序-取消收藏") | 
			
		
	
		
			
				
					|  |  |  | @RequestMapping(value = "/deleteCollection", method = {RequestMethod.POST}) | 
			
		
	
		
			
				
					|  |  |  | public Result<?> deleteCollection(@RequestHeader("X-Access-Token") String token, String collectionType, String collectionId){ | 
			
		
	
		
			
				
					|  |  |  | return indexApiService.deleteCollection(token, collectionType, collectionId); | 
			
		
	
		
			
				
					|  |  |  | //取消购物车 | 
			
		
	
		
			
				
					|  |  |  | @ApiOperation(value="我的购物车-取消购物车", notes="我的购物车-取消购物车") | 
			
		
	
		
			
				
					|  |  |  | @RequestMapping(value = "/deleteShopcar", method = {RequestMethod.DELETE}) | 
			
		
	
		
			
				
					|  |  |  | public Result<?> deleteShopcar(@RequestHeader("X-Access-Token") String token, String shopcarId){ | 
			
		
	
		
			
				
					|  |  |  | return indexApiService.deleteShopcar(token,shopcarId); | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | //获取个人信息接口 | 
			
		
	
		
			
				
					|  |  |  | @ApiOperation(value="小程序-查询用户个人信息", notes="小程序-查询用户个人信息") | 
			
		
	
		
			
				
					|  |  |  | @RequestMapping(value = "/queryHanHaiMemberById", method = {RequestMethod.GET}) | 
			
		
	
		
			
				
					|  |  |  | public Result<?> queryHanHaiMemberById(@RequestHeader("X-Access-Token") String token){ | 
			
		
	
		
			
				
					|  |  |  | return indexApiService.queryHanHaiMemberById(token); | 
			
		
	
		
			
				
					|  |  |  | //修改购物车商品数量 | 
			
		
	
		
			
				
					|  |  |  | @ApiOperation(value="我的购物车-修改购物车信息", notes="我的购物车-修改购物车信息") | 
			
		
	
		
			
				
					|  |  |  | @RequestMapping(value = "/updateShopcar", method = {RequestMethod.POST}) | 
			
		
	
		
			
				
					|  |  |  | public Result<?> updateShopcar(@RequestHeader("X-Access-Token") String token, TravelShopcar shopcar){ | 
			
		
	
		
			
				
					|  |  |  | return indexApiService.updateShopcar(token, shopcar); | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | //修改个人信息接口 | 
			
		
	
		
			
				
					|  |  |  | @ApiOperation(value="小程序-修改用户个人信息", notes="小程序-修改用户个人信息") | 
			
		
	
		
			
				
					|  |  |  | @RequestMapping(value = "/updateHanHaiMemberById", method = {RequestMethod.POST}) | 
			
		
	
		
			
				
					|  |  |  | public Result<?> queryHanHaiMemberById(@RequestHeader("X-Access-Token") String token, HanHaiMember hanHaiMember){ | 
			
		
	
		
			
				
					|  |  |  | return indexApiService.updateHanHaiMemberById(token, hanHaiMember); | 
			
		
	
		
			
				
					|  |  |  | /*******************加入志愿者****************************/ | 
			
		
	
		
			
				
					|  |  |  | //添加志愿者 | 
			
		
	
		
			
				
					|  |  |  | @ApiOperation(value="加入志愿者-添加志愿者", notes="加入志愿者-添加志愿者") | 
			
		
	
		
			
				
					|  |  |  | @RequestMapping(value = "/addVolunteer", method = {RequestMethod.POST}) | 
			
		
	
		
			
				
					|  |  |  | public Result<?> addVolunteer(TravelVolunteer travelVolunteer){ | 
			
		
	
		
			
				
					|  |  |  | return indexApiService.addVolunteer(travelVolunteer); | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | } |