| | |
| | | import com.jilongda.common.basic.ApiResult; |
| | | import com.jilongda.common.basic.PageInfo; |
| | | import com.jilongda.manage.model.TAppUser; |
| | | import com.jilongda.manage.model.TCouponReceive; |
| | | import com.jilongda.manage.model.TOptometry; |
| | | import com.jilongda.manage.model.TOrder; |
| | | import com.jilongda.manage.query.TAppUserCouponQuery; |
| | | import com.jilongda.manage.query.TAppUserQuery; |
| | | import com.jilongda.manage.query.TOptometristQuery; |
| | | import com.jilongda.manage.service.TAppUserService; |
| | | import com.jilongda.manage.service.TCouponReceiveService; |
| | | import com.jilongda.manage.service.TOptometryService; |
| | | import com.jilongda.manage.service.TOrderService; |
| | | import com.jilongda.manage.vo.TAppUserCouponVO; |
| | | import com.jilongda.manage.vo.TAppUserVO; |
| | | import com.jilongda.manage.vo.TOptometristVO; |
| | | import io.swagger.annotations.Api; |
| | |
| | | * @since 2024-12-09 |
| | | */ |
| | | @RestController |
| | | @Api(tags = "用户管理") |
| | | @Api(tags = "小程序用户管理") |
| | | @RequestMapping("/t-app-user") |
| | | public class TAppUserController { |
| | | |
| | |
| | | private TOrderService orderService; |
| | | @Resource |
| | | private TOptometryService tOptometryService; |
| | | @Resource |
| | | private TCouponReceiveService couponReceiveService; |
| | | @ApiOperation(value = "用户列表") |
| | | @PostMapping(value = "/pageList") |
| | | public ApiResult<PageInfo<TAppUserVO>> pageList(@RequestBody TAppUserQuery query) { |
| | |
| | | |
| | | return ApiResult.success(tAppUserVO); |
| | | } |
| | | @ApiOperation(value = "用户详情-查看优惠券") |
| | | @PostMapping(value = "/getCouponDetailById") |
| | | public ApiResult<PageInfo<TAppUserCouponVO>> getCouponDetailById(@RequestBody TAppUserCouponQuery query) { |
| | | PageInfo<TAppUserCouponVO> appUserVOPageInfo = couponReceiveService.pageList(query); |
| | | return ApiResult.success(appUserVOPageInfo); |
| | | } |
| | | |
| | | @ApiOperation(value = "用户信息修改") |
| | | @PostMapping(value = "/updateUser") |
| | | public ApiResult<String> updateUser(@RequestBody TAppUser appUser) { |
| | | appUserService.updateById(appUser); |
| | | return ApiResult.success(); |
| | | } |
| | | |
| | | } |
| | | |