Merge remote-tracking branch 'origin/master'
New file |
| | |
| | | package com.hz.his.dto.user.money; |
| | | |
| | | |
| | | import lombok.Data; |
| | | import lombok.ToString; |
| | | |
| | | /** |
| | | * 修改用户资金 |
| | | * |
| | | * @author wzh |
| | | */ |
| | | @Data |
| | | @ToString |
| | | public class PhisUserMoneyDto { |
| | | /** |
| | | * 用户Id |
| | | */ |
| | | private String userId; |
| | | /** |
| | | * 操作人Id |
| | | */ |
| | | private String operatorId; |
| | | /** |
| | | * 储值金 |
| | | */ |
| | | private String storedValueFund; |
| | | /** |
| | | * 增值金 |
| | | */ |
| | | private String valueAddedFund; |
| | | /** |
| | | * 积分 |
| | | */ |
| | | private String integral; |
| | | /** |
| | | * 预定金 |
| | | */ |
| | | private String deposit; |
| | | /** |
| | | * 备注 |
| | | */ |
| | | private String note; |
| | | |
| | | /*****************类型信息 注:以下常量以phis的UserMoneyLog常量为主*******************************/ |
| | | |
| | | /** |
| | | * 操作人类型-用户 |
| | | */ |
| | | public static final int OPERATOR_TYPE_USER = 0; |
| | | /** |
| | | * 操作人类型-员工 |
| | | */ |
| | | public static final int OPERATOR_TYPE_EMPLOYEE = 1; |
| | | /** |
| | | * 操作人类型-管理员 |
| | | */ |
| | | public static final int OPERATOR_TYPE_ADMIN = 2; |
| | | /** |
| | | * 操作人类型-系统 |
| | | */ |
| | | public static final int OPERATOR_TYPE_SYSTEM = 3; |
| | | |
| | | } |
| | |
| | | @RequestMapping(value = "/cos/upload-multipart",consumes = MediaType.MULTIPART_FORM_DATA_VALUE) |
| | | Result upload(@RequestPart("file") MultipartFile file, @RequestParam("folderCode") String folderCode, @RequestParam("bucketName")String bucketName); |
| | | |
| | | |
| | | /** |
| | | *上传图片(转化实体FileUpdateDto) |
| | | * @param file 文件 |
| | | * @param folderCode 存储文件夹,比如商品轮播图:/goods/banner |
| | | * @param bucketName 存储桶名称 |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/cos/upload-file") |
| | | Result upload(@RequestParam("file") File file, @RequestParam("folderCode") String folderCode, @RequestParam("bucketName")String bucketName); |
| | | /** |
| | | *下载图片 |
| | | * 可以使用 FileDownUtil.downToFile()方法转化为文件 |
| | |
| | | package com.hz.his.feign.service.platform; |
| | | |
| | | import com.hx.resultTool.Result; |
| | | import com.hz.his.dto.user.UserParamDto; |
| | | import com.hz.his.dto.user.money.PhisUserMoneyDto; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | |
| | | * 开放平台-用户新增 |
| | | */ |
| | | @PostMapping(value = "/user/money/op") |
| | | Result addUser(@RequestBody UserParamDto userParamDto); |
| | | Result upUserMoney(@RequestBody PhisUserMoneyDto userMoneyDto); |
| | | |
| | | |
| | | |