com.flyfish.oauth.domain.auditing.AuditingStrategy Maven / Gradle / Ivy
package com.flyfish.oauth.domain.auditing;
import com.flyfish.oauth.domain.raw.Domain;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import java.util.List;
/**
* 审计策略
*
* @author wangyu
*/
@Getter
@Setter
public class AuditingStrategy extends Domain {
/**
* 请求方式
*/
private String method;
/**
* 审计uri
*/
private String uri;
/**
* 拦截的请求参数
*/
private List parameters;
/**
* 请求结果,用于解析返回信息
*/
private List results;
/**
* 描述
*/
private String description;
@AllArgsConstructor
@Getter
public enum InterfaceParamType {
STRING("字符串"), NUMBER("数字"), ENUM("枚举");
private String name;
}
@AllArgsConstructor
@Getter
public enum InterfaceResultType {
JSON("JSON"), STRING("字符串"), BINARY("二进制");
private String name;
}
/**
* 接口请求参数
*/
@Getter
@Setter
public static class InterfaceParameter {
private String name;
private InterfaceParamType type;
private Boolean required;
private String description;
}
@Getter
@Setter
public static class InterfaceResult {
private InterfaceResultType type;
private String description;
private String example;
private String identifier;
}
}