新增覆冰主站查询
parent
1072fa672e
commit
95bf609fbf
@ -0,0 +1,48 @@
|
||||
//package com.shxy.xymanager_common.entity;
|
||||
//
|
||||
//import java.io.Serializable;
|
||||
//import java.util.Date;
|
||||
//
|
||||
//public class ThirdUser implements Serializable {
|
||||
// private Integer name;
|
||||
//
|
||||
// private String password;
|
||||
//
|
||||
// private Date tokenEffectTime;
|
||||
//
|
||||
// private String token;
|
||||
//
|
||||
// private static final long serialVersionUID = 1L;
|
||||
//
|
||||
// public Integer getName() {
|
||||
// return name;
|
||||
// }
|
||||
//
|
||||
// public void setName(Integer name) {
|
||||
// this.name = name;
|
||||
// }
|
||||
//
|
||||
// public String getPassword() {
|
||||
// return password;
|
||||
// }
|
||||
//
|
||||
// public void setPassword(String password) {
|
||||
// this.password = password == null ? null : password.trim();
|
||||
// }
|
||||
//
|
||||
// public Date getTokenEffectTime() {
|
||||
// return tokenEffectTime;
|
||||
// }
|
||||
//
|
||||
// public void setTokenEffectTime(Date tokenEffectTime) {
|
||||
// this.tokenEffectTime = tokenEffectTime;
|
||||
// }
|
||||
//
|
||||
// public String getToken() {
|
||||
// return token;
|
||||
// }
|
||||
//
|
||||
// public void setToken(String token) {
|
||||
// this.token = token == null ? null : token.trim();
|
||||
// }
|
||||
//}
|
@ -0,0 +1,70 @@
|
||||
//package com.shxy.xymanager_common.util.http;
|
||||
//import com.alibaba.fastjson.JSONObject;
|
||||
//import io.github.admin4j.http.HttpRequest;
|
||||
//import io.github.admin4j.http.core.Pair;
|
||||
//import io.github.admin4j.http.util.HttpUtil;
|
||||
//import okhttp3.Response;
|
||||
//
|
||||
//import java.io.File;
|
||||
//import java.io.IOException;
|
||||
//import java.util.ArrayList;
|
||||
//import java.util.HashMap;
|
||||
//import java.util.List;
|
||||
//import java.util.Map;
|
||||
//
|
||||
//public class OkHttpUtils {
|
||||
//
|
||||
// public static JSONObject get(String url, Map<String, Object> queryParams) throws IOException {
|
||||
// Response response = HttpUtil.get(url, queryParams);
|
||||
// return JSONObject.parseObject(response.body().string());
|
||||
// }
|
||||
//
|
||||
// public static JSONObject get(String url, Map<String, Object> queryParams, Map<String, Object> headers) throws IOException {
|
||||
// HttpRequest httpRequest = HttpRequest.get(url);
|
||||
// setParams(queryParams, httpRequest);
|
||||
// Response response = httpRequest.queryParams().headers(headers).execute();
|
||||
// return JSONObject.parseObject(response.body().string());
|
||||
// }
|
||||
//
|
||||
// public static JSONObject post(String url, String json) throws IOException {
|
||||
// Response response = HttpUtil.post(url, json);
|
||||
// assert response.body() != null;
|
||||
// return JSONObject.parseObject(response.body().string());
|
||||
// }
|
||||
//
|
||||
// public static JSONObject postForm(String url, Map<String, Object> formParams) throws IOException {
|
||||
// Response response = HttpUtil.postForm(url, formParams);
|
||||
// assert response.body() != null;
|
||||
// return JSONObject.parseObject(response.body().string());
|
||||
// }
|
||||
//
|
||||
// public static JSONObject post(String url, String json, Map<String, Object> headers) throws IOException {
|
||||
// HttpRequest httpRequest = HttpRequest.post(url);
|
||||
// httpRequest.setBody(json);
|
||||
// Response response = httpRequest.headers(headers).execute();
|
||||
// return JSONObject.parseObject(response.body().string());
|
||||
// }
|
||||
//
|
||||
// private static void setParams(Map<String, Object> queryParams, HttpRequest httpRequest) {
|
||||
// List<Pair> pairs = new ArrayList<>(queryParams.size());
|
||||
// queryParams.forEach((x, y) -> pairs.add(Pair.of(x, y)));
|
||||
// if (pairs.size() > 0) {
|
||||
// pairs.forEach(httpRequest::queryParams);
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// private static JSONObject upload() throws IOException {
|
||||
// File file = new File("C:\\Users\\andanyang\\Downloads\\Sql.txt");
|
||||
// Map<String, Object> formParams = new HashMap<>();
|
||||
// formParams.put("key", "test");
|
||||
// formParams.put("file", file);
|
||||
// formParams.put("token", "WXyUseb-D4sCum-EvTIDYL-mEehwDtrSBg-Zca7t:qgOcR2gUoKmxt-VnsNb657Oatzo=:eyJzY29wZSI6InpoYW56aGkiLCJkZWFkbGluZSI6MTY2NTMwNzUxNH0=");
|
||||
// Response response = HttpUtil.upload("https://upload.qiniup.com/", formParams);
|
||||
// return JSONObject.parseObject(response.body().string());
|
||||
// }
|
||||
//
|
||||
// private static void download() throws IOException {
|
||||
// HttpUtil.down("https://gitee.com/admin4j/common-http","path/");
|
||||
// }
|
||||
//
|
||||
//}
|
@ -0,0 +1,21 @@
|
||||
package com.shxy.xymanager_common.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@ApiModel(value = "查询列表对象", description = "查询列表对象")
|
||||
public class DyListVo {
|
||||
|
||||
|
||||
@ApiModelProperty(value = "是否收藏", example = "0--删除收藏 1--收藏")
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty(value = "查询列表对象数组", required = true)
|
||||
private List<Integer> lineid;
|
||||
|
||||
}
|
Loading…
Reference in New Issue