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

com.github.azbh111.utils.java.model.ResStatus Maven / Gradle / Ivy

package com.github.azbh111.utils.java.model;

import com.github.azbh111.utils.java.annotation.Nullable;

/**
 * 用枚举实现此接口,用来和调用方统一状态码
 *
 * @author: zyp
 * @date: 2020/11/19 22:44
 */
public interface ResStatus {
    /**
     * 状态码
     *
     * @return
     */
    int getStatus();

    /**
     * 描述状态码的含义
     *
     * @return
     */
    @Nullable
    String getDesc();

    /**
     * 展示给用户看的信息
     *
     * @return
     */
    @Nullable
    String getDisplayMsg();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy