当前位置:网站首页>Xutils3 transfer set
Xutils3 transfer set
2022-06-29 23:35:00 【xiyangyang8110】
Input parameters are collections , It's like this
The core :
params.addBodyParameter("collectionDtoList", collectionDtoList);
Are the names of collections
List<CancelCollectBean.CollectionDtoListDTO> collectionDtoList = new ArrayList<>();
CancelCollectBean.CollectionDtoListDTO collectionDtoListDTO = new CancelCollectBean.CollectionDtoListDTO();
collectionDtoListDTO.setCollectionType(1);
collectionDtoListDTO.setTypeId(professionInfo.getData().getRecords().get(position).getProductId());
collectionDtoList.add(collectionDtoListDTO);
RequestParams params = new RequestParams(Constant.delCollection);
params.addHeader("Authorization", Constant.authorization);
params.addHeader("language", Constant.system_language);
params.setAsJsonContent(true);
Collection type ,1: goods ,2: service ,3:SPU,4: Experts ,5,: brand
// params.addBodyParameter("collectionType", 4);
// // expertRemarkName Expert remark name
params.addBodyParameter("expertRemarkName", "lbb");
// // Collection objects ID. Collect goods and pass them on ID, Collection service time transfer service ID, Collection SPU Shizhuan SpuId, Collect experts from time to time id
// params.addBodyParameter("typeId", professionInfo.getData().get(position).getExpertId());
params.addBodyParameter("collectionDtoList", collectionDtoList);
Log.e("wy", "249onViewCreated params: " + params);
x.http().post(params, new Callback.CommonCallback<String>() {
@Override
public void onSuccess(String result) {
LoveBean professionInfo = JSON.parseObject(result, LoveBean.class);
if (professionInfo.getCode().equals("00000000")) {
Toast.makeText(x.app(), R.string.cancels, Toast.LENGTH_SHORT).show();
getData(keywords);
} else {
Toast.makeText(x.app(), professionInfo.getMsg(), Toast.LENGTH_LONG).show();
startActivity(new Intent(ShopCustomSearchNewActivity.this, LoginActivity.class));
}
}
@Override
public void onError(Throwable ex, boolean isOnCallback) {
Log.e("wy", "result: " + ex.getMessage());
}
@Override
public void onCancelled(CancelledException cex) {
Toast.makeText(x.app(), "cancelled", Toast.LENGTH_LONG).show();
}
@Override
public void onFinished() {
}
});
边栏推荐
- 软件测试 接口测试 Postman测试工具 接口测试的流程 执行接口测试 接口关联 环境变量和全局变量 内置动态参数以及自动有的动态参数
- 网上开户选哪个证券公司?还有,在线开户安全么?
- Solr basic operation 1
- 25 interview questions about Apache
- Test d'installation du cluster metaq
- [译]在软件开发行业工作 6 年后,那些年我曾改过的观念
- 打造一个 API 快速开发平台,牛逼!
- 疫情下我离职一年,收入增长了10倍
- Provide effective performance evaluation 
- PROJECT #1 - BUFFER POOL [CMU 15-445645]笔记
猜你喜欢

剑指 Offer 15. 二进制中1的个数

Wechat applet: big red festive UI guessing lantern riddles is also called guessing character riddles

LC:最大子数组和
discrete "digital signal"]"/>Speech signal processing (III): speech signal analysis [continuous "analog signal" -- Sampling, quantization, coding -- > discrete "digital signal"]

Pain points and solutions of M1 notebook home office | community essay solicitation

剑指 Offer 14- II. 剪绳子 II

Procurement intelligence is about to break out, and the "3+2" system of Alipay helps enterprises build core competitive advantages

机器学习:VC维的概念和用途

Intranet penetration (NC)

Leetcode(680)——验证回文字符串 Ⅱ
随机推荐
采购数智化爆发在即,支出宝“3+2“体系助力企业打造核心竞争优势
微博系统中”微博评论“的高性能高可用计算架构
简单理解B树和B+树
High performance and high availability computing architecture of "microblog comments" in microblog system
Solr basic operation 2
二叉搜索树 230. 二叉搜索树中第K小的元素 1038. 从二叉搜索树到更大和树
语音信号处理(二): 发声生理、听觉生理与听觉心理
Solr基础操作1
C pointer advanced 1-- > character pointer, array pointer, pointer and array parameter transfer, function pointer
架构实战营模块 5 作业
CE第二次作业
Cacti最大监控数测试
雲和恩墨蓋國强,識別它、抓住它,在國產數據庫沸騰以前
成为唯一的key
Discussion on distributed unique ID generation scheme
[learn FPGA programming from scratch -51]: high level chapter - FPGA development based on IP core - what is FPGA IP core (soft core, fixed core, hard core) and learning methods
打造一个 API 快速开发平台,牛逼!
Pain points and solutions of M1 notebook home office | community essay solicitation
Halcon实用:焊点检出设计思路
Solr基础操作