| | |
| | | import com.panzhihua.common.model.vos.ResultData; |
| | | import com.panzhihua.common.model.vos.union.StructuredVO; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | @PostMapping("/unionUser/login") |
| | | public R unionUserLogin(@RequestBody LoginUserInfoVO loginUserInfoVO); |
| | | |
| | | |
| | | |
| | | /** |
| | | * 登录(H5) |
| | | * |
| | | * @param phone |
| | | * @return 总工会户外劳共用户 |
| | | */ |
| | | @GetMapping("/unionUser/loginH5") |
| | | R unionUserLoginH5(@RequestParam(value = "phone") String phone); |
| | | |
| | | /** |
| | | * 总工会户外劳工站用户认证 |
| | | * |
| | |
| | | * @return 总工会户外劳共用户 |
| | | */ |
| | | @PostMapping("/unionUser/authentication") |
| | | public R unionUserAuthentication(@RequestBody UnionUserDto unionUserDto); |
| | | R unionUserAuthentication(@RequestBody UnionUserDto unionUserDto); |
| | | |
| | | /** |
| | | * 用户开门 |
| | | * @param qRCode 二维码字符串 |
| | | * @return 总工会户外劳共用户 |
| | | */ |
| | | @GetMapping("/unionUser/openDoor") |
| | | R openDoor(@RequestParam(value = "qRCode") String qRCode); |
| | | |
| | | |
| | | /** |
| | | * 查询城市下属所有地区列表 |
| | | * |
| | | * @param cityAdcode |
| | | * 城市地址编码 |
| | | * @return 地区列表 |
| | | */ |
| | | @PostMapping("listareadistrict") |
| | | R listAreaDistrict(@RequestParam("cityAdcode") Long cityAdcode); |
| | | |
| | | |
| | | /****************************************************************************************************************** |
| | | * |
| | | * 积分明细记录 |
| | | * |
| | | ****************************************************************************************************************/ |
| | | |
| | | @GetMapping("/UnionIntegralRecord/getList") |
| | | public R unionIntegralRecordGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam(value = "communityId",required = false) String communityId, |
| | | @RequestParam(value = "integralType",required = false) String integralType, |
| | | @RequestParam(value = "nameOrNum",required = false) String nameOrNum); |
| | | |
| | | @GetMapping("/UnionIntegralRecord/getData") |
| | | public R unionIntegralRecordGetData(@RequestParam("id") String id); |
| | | |
| | | @PostMapping("/UnionIntegralRecord/insert") |
| | | public R unionIntegralRecordInsert(@RequestBody UnionIntegralRecordDto item); |
| | | |
| | | @PostMapping("/UnionIntegralRecord/update") |
| | | public R unionIntegralRecordUpdate(@RequestBody UnionIntegralRecordDto item); |
| | | |
| | | /** |
| | | * 删除接口 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/UnionIntegralRecord/delete") |
| | | public R unionIntegralRecordDelete(@RequestParam("id") String id); |
| | | |
| | | |
| | | /*************************************************************************************************************** |
| | | * |
| | | * |
| | | * 积分总表 |
| | | * |
| | | * *************************************************************************************************************/ |
| | | |
| | | @GetMapping("/UnionIntegralSummarize/getList") |
| | | public R unionIntegralSummarizeGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam(value = "communityId",required = false) String communityId); |
| | | |
| | | |
| | | @GetMapping("/UnionIntegralSummarize/getData") |
| | | public R unionIntegralSummarizeGetData(@RequestParam("id") String id); |
| | | |
| | | |
| | | @GetMapping("/UnionIntegralSummarize/getUserData") |
| | | public R unionIntegralSummarizeGetUserData(); |
| | | |
| | | @PostMapping("/UnionIntegralSummarize/insert") |
| | | public R unionIntegralSummarizeInsert(@RequestBody UnionIntegralSummarizeDto item); |
| | | |
| | | @PostMapping("/UnionIntegralSummarize/update") |
| | | public R unionIntegralSummarizeUpdate(@RequestBody UnionIntegralSummarizeDto item); |
| | | |
| | | /** |
| | | * 删除接口 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/UnionIntegralSummarize/delete") |
| | | public R unionIntegralSummarizeDelete(@RequestParam("id") String id); |
| | | |
| | | |
| | | /******************************************************************************************************************* |
| | | * |
| | | * |
| | | * 兑换记录 |
| | | * |
| | | * |
| | | ******************************************************************************************************************/ |
| | | |
| | | |
| | | @GetMapping("/UnionExchangeRecord/getList") |
| | | public R unionExchangeRecordGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam(value = "communityId",required = false) String communityId, |
| | | @RequestParam(value = "orderType",required = false) String orderType); |
| | | |
| | | |
| | | @GetMapping("/UnionExchangeRecord/getData") |
| | | public R unionExchangeRecordGetData(@RequestParam("id") String id); |
| | | |
| | | @PostMapping("/UnionExchangeRecord/insert") |
| | | public R unionExchangeRecordInsert(@RequestBody UnionExchangeRecordDto item); |
| | | |
| | | @PostMapping("/UnionExchangeRecord/update") |
| | | public R unionExchangeRecordUpdate(@RequestBody UnionExchangeRecordDto item); |
| | | |
| | | /** |
| | | * 删除接口 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/UnionExchangeRecord/delete") |
| | | public R unionExchangeRecordDelete(@RequestParam("id") String id); |
| | | |
| | | /********************************************************************************************************** |
| | | * |
| | | * |
| | | * 收货地址 |
| | | * |
| | | * |
| | | ************************************************************************************************************/ |
| | | |
| | | @GetMapping("/UnionShippingAddress/getList") |
| | | public R unionShippingAddressGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam(value = "communityId",required = false) String communityId); |
| | | |
| | | |
| | | @GetMapping("/UnionShippingAddress/getData") |
| | | public R unionShippingAddressGetData(@RequestParam("id") String id); |
| | | |
| | | |
| | | @GetMapping("/UnionShippingAddress/getDefaultData") |
| | | public R unionShippingAddressGetDefaultData(); |
| | | |
| | | @PostMapping("/UnionShippingAddress/insert") |
| | | public R unionShippingAddressInsert(@RequestBody UnionShippingAddressDto item); |
| | | |
| | | @PostMapping("/UnionShippingAddress/update") |
| | | public R unionShippingAddressUpdate(@RequestBody UnionShippingAddressDto item); |
| | | |
| | | /** |
| | | * 删除接口 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/UnionShippingAddress/delete") |
| | | public R unionShippingAddressDelete(@RequestParam("id") String id); |
| | | } |