package com.kiisoo.ic.common.utils.httpClientUtil;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * http返回结果
 */
@Data
@NoArgsConstructor
public class HttpResult {

	/**
	 * 接口地址
	 */
	private String url;

	/**
	 * http状态码
	 */
	private int code;

	/**
	 * 返回结果String
	 */
	private String message;

	/**
	 * 操作内容
	 */
	private String transactions;

	public HttpResult(String url, int code, String message, String transactions) {
		this.url = url;
		this.code = code;
		this.message = message;
		this.transactions = transactions;
	}

	public HttpResult(String url, int code) {
		this.url = url;
		this.code = code;
	}
}