All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lastb7.swagger.common.SwaggerHttpCode Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
package com.lastb7.swagger.common;

import com.jfinal.kit.Okv;

import io.swagger.annotations.ApiModel;

/**
 * @author: lbq
 * 联系方式: [email protected]
 * 创建日期: 2020/9/9
 */
@ApiModel(description = "响应状态")
public class SwaggerHttpCode {

    public SwaggerHttpCode() {
        Okv kv = Okv.by(200, "请求成功")
                .set(400, "服务器不理解请求的语法")
                .set(403, "服务器拒绝请求")
                .set(404, "服务器找不到请求的网页")
                .set(405, "禁用请求中指定的方法")
                .set(500, "服务器遇到错误,无法完成请求");

        this.httpCodeKv = kv;
    }

    private Okv httpCodeKv;

    public Okv getHttpCodeKv() {
        return httpCodeKv;
    }

    public void setHttpCodeKv(Okv httpCodeKv) {
        this.httpCodeKv = httpCodeKv;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy