|
|
@ -9,6 +9,7 @@ import org.jeecg.modules.apiService.IndexApiService; |
|
|
|
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; |
|
|
@ -41,49 +42,49 @@ public class UserInfoApiController { |
|
|
|
//查询地址 |
|
|
|
@ApiOperation(value="小程序-查询地址", notes="小程序-查询地址") |
|
|
|
@RequestMapping(value = "/queryAddress", method = {RequestMethod.GET}) |
|
|
|
public Result<?> queryAddress(String token, TravelAddress travelAddress, PageBean pageBean){ |
|
|
|
public Result<?> queryAddress(@RequestHeader("X-Access-Token") String token, TravelAddress travelAddress, PageBean pageBean){ |
|
|
|
return indexApiService.queryAddress(token, travelAddress, pageBean); |
|
|
|
} |
|
|
|
|
|
|
|
//新增地址 |
|
|
|
@ApiOperation(value="小程序-新增地址", notes="小程序-新增地址") |
|
|
|
@RequestMapping(value = "/addAddress", method = {RequestMethod.POST}) |
|
|
|
public Result<?> addAddress(String token, TravelAddress travelAddress){ |
|
|
|
public Result<?> addAddress(@RequestHeader("X-Access-Token") String token, TravelAddress travelAddress){ |
|
|
|
return indexApiService.addAddress(token, travelAddress); |
|
|
|
} |
|
|
|
|
|
|
|
//删除地址 |
|
|
|
@ApiOperation(value="小程序-删除地址", notes="小程序-删除地址") |
|
|
|
@RequestMapping(value = "/deleteAddress", method = {RequestMethod.DELETE}) |
|
|
|
public Result<?> deleteAddress(String token, String AddressId){ |
|
|
|
public Result<?> deleteAddress(@RequestHeader("X-Access-Token") String token, String AddressId){ |
|
|
|
return indexApiService.deleteAddress(token, AddressId); |
|
|
|
} |
|
|
|
|
|
|
|
//修改地址 |
|
|
|
@ApiOperation(value="小程序-修改地址", notes="小程序-修改地址") |
|
|
|
@RequestMapping(value = "/updateAddress", method = {RequestMethod.POST}) |
|
|
|
public Result<?> updateAddress(String token, TravelAddress travelAddress){ |
|
|
|
public Result<?> updateAddress(@RequestHeader("X-Access-Token") String token, TravelAddress travelAddress){ |
|
|
|
return indexApiService.updateAddress(token, travelAddress); |
|
|
|
} |
|
|
|
|
|
|
|
//我的收藏 |
|
|
|
@ApiOperation(value="小程序-获取我的收藏列表", notes="collectionType:0-遗产讲述 1-达人同游 2-遗产路径 3-我要跟拍 4-非遗体验 5-我要研学 6-文创好物") |
|
|
|
@RequestMapping(value = "/queryCollectionList", method = {RequestMethod.GET}) |
|
|
|
public Result<?> queryCollectionList(String token, String collectionType, PageBean pageBean){ |
|
|
|
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(String token, TravelCollection travelCollection){ |
|
|
|
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(String token, String collectionId){ |
|
|
|
public Result<?> deleteCollection(@RequestHeader("X-Access-Token") String token, String collectionId){ |
|
|
|
return indexApiService.deleteCollection(token, collectionId); |
|
|
|
} |
|
|
|
|
|
|
|