当前位置:网站首页>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() {
}
});
边栏推荐
猜你喜欢

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

Head pressing Amway good-looking and practical dispensing machine SolidWorks model material here

matplotlib matplotlib中plt.hist()参数解释

剑指 Offer 38. 字符串的排列

sql刷题595. 大的国家

缓冲流练习

Vs cannot locate program input point to DLL

Intranet penetration (NC)

Collection! Have you ever used these tools to improve programmer productivity?

High performance and high availability computing architecture of "Weibo comments"
随机推荐
sql刷题595. 大的国家
Database - playful data -pgsql uses UUID as primary key
网上开户选哪个证券公司?还有,在线开户安全么?
Software testing interface testing JMeter 5.5 installation tutorial
LC:有效的数独 + 旋转图像
Constexpr function
Label Troubleshooting: unable to open the marked image
Leetcode(680)——验证回文字符串 Ⅱ
Incluxdb time series database system
Solr基础操作
Implementation of aut, a self-developed transport layer protocol for sound network -- dev for dev column
搭建企业级NTP时间服务器
Solr basic operation 2
[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
手机开户一般哪个证券公司好?另外,手机开户安全么?
十大券商:“推土机行情”再现
Top ten securities companies: "bulldozer market" reappearance
Project 1 - buffer pool [cmu 15-445645] notes
疫情下我离职一年,收入增长了10倍
Provide effective performance evaluation