dto

import com.aliyun.dysmsapi20170525.models.AddSmsSignRequest;
import lombok.Data;
import java.util.List;
/**
 * @author: liziqiang
 * @description: ReqSendCodeDto
 * @date: 2021/6/23 7:12 下午
 */
@Data
public class AliSmsSignDto {
    private Integer signSource;
    private String signName;
    private String remark;
    private List<AddSmsSignRequest.AddSmsSignRequestSignFileList> signFileList;
}

controller

	@PostMapping("/add")
    @ApiOperation(value = "阿里短信签名新增", notes = "阿里短信签名新增")
    public CustomRestResult<String> addSmsSign(@RequestPart("json") AliSmsSignDto aliSmsSignDto,
                                               @RequestPart("file") MultipartFile file){
        aliSmsSignService.addSmsSign(aliSmsSignDto,file);
        return CustomRestResult.success("新增成功");
    }

postman传参方式
在这里插入图片描述
注意json一定要改成file格式传
在这里插入图片描述
json文件
在这里插入图片描述
有了
在这里插入图片描述

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐