1 Star 0 Fork 54

空空/ddns

forked from fastjrun/ddns 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
fastjrun-schema.xsd 8.05 KB
一键复制 编辑 原始数据 按行查看 历史
fastjrun 提交于 2022-08-22 07:57 . 使用快嘉sdkg进行重构
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="packets">
<xs:complexType>
<xs:choice>
<xs:element name="packet" type="packetObject" minOccurs="0"
maxOccurs="unbounded"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:complexType name="field">
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="dataType" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Boolean"/>
<xs:enumeration value="Integer"/>
<xs:enumeration value="Long"/>
<xs:enumeration value="Double"/>
<xs:enumeration value="String"/>
<xs:enumeration value="java.util.Date"/>
<xs:enumeration value="Boolean:List"/>
<xs:enumeration value="Integer:List"/>
<xs:enumeration value="Long:List"/>
<xs:enumeration value="Double:List"/>
<xs:enumeration value="String:List"/>
<xs:enumeration value="java.util.Date:List"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="length" use="required">
<xs:simpleType>
<xs:restriction base="xs:positiveInteger">
<xs:maxInclusive value="1000"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="canBeNull" type="xs:boolean" use="required"/>
<xs:attribute name="message" type="xs:string"/>
<xs:attribute name="remark" type="xs:string" use="required"/>
<xs:attribute name="getter" type="xs:string"/>
<xs:attribute name="setter" type="xs:string"/>
</xs:complexType>
<xs:complexType name="packetObject">
<xs:sequence>
<xs:element name="field" type="field" minOccurs="0"
maxOccurs="unbounded"/>
<xs:element name="list" type="packetObject" minOccurs="0"
maxOccurs="unbounded"/>
<xs:element name="object" type="packetObject" minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="name" type="xs:string" default=""/>
<xs:attribute name="class" type="xs:string" use="required"/>
<xs:attribute name="new" type="xs:boolean" default="true"/>
<xs:attribute name="ref" type="xs:boolean" default="true"/>
<!--parent必须是已经有的类;如果是生成的类,则类名后加:New-->
<xs:attribute name="parent" type="xs:string"/>
<xs:attribute name="remark" type="xs:string" default=""/>
</xs:complexType>
<xs:element name="services">
<xs:complexType>
<xs:choice>
<xs:element name="service" type="commonService"
minOccurs="0" maxOccurs="unbounded"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:complexType name="bodyObject">
<xs:attribute name="class" type="xs:string" use="required"/>
<xs:attribute name="name" type="xs:string"/>
</xs:complexType>
<xs:complexType name="commonService">
<xs:sequence>
<xs:element name="method" type="commonMethod" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="class" type="xs:string" use="required"/>
</xs:complexType>
<xs:complexType name="commonMethod">
<xs:sequence>
<xs:element name="parameters" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="parameter" type="commonParameter" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="pathVariables" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="pathVariable" type="commonParameter" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="headVariables" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="headVariable" type="commonParameter" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="cookieVariables" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="cookieVariable" type="commonParameter" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="webParameters" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="webParameter" type="commonParameter" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="request" type="bodyObject" minOccurs="0"/>
<xs:element name="response" type="bodyObject" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="version" type="xs:string" use="required"/>
<xs:attribute name="path" type="xs:string"/>
<xs:attribute name="remark" type="xs:string" use="required"/>
<xs:attribute name="method" type="methodType" default="POST"/>
<xs:attribute name="reqType" type="contentType" default="json"/>
<xs:attribute name="resType" type="contentType" default="json"/>
<!-- 不需要对外提供api -->
<xs:attribute name="needApi" type="xs:boolean" default="true"/>
<xs:attribute name="needResponse" type="xs:boolean" default="true"/>
<!-- eladmin接口需要 -->
<xs:attribute name="httpStatus" type="httpStatus"/>
</xs:complexType>
<xs:simpleType name="httpStatus">
<xs:restriction base="xs:string">
<!-- 有返回数据;删除操作 -->
<xs:enumeration value="OK"/>
<!-- 创建 -->
<xs:enumeration value="CREATED"/>
<!-- 更新 -->
<xs:enumeration value="NO_CONTENT"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="methodType">
<xs:restriction base="xs:string">
<xs:enumeration value="GET"/>
<xs:enumeration value="POST"/>
<xs:enumeration value="PUT"/>
<xs:enumeration value="DELETE"/>
<xs:enumeration value="PATCH"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="contentType">
<xs:restriction base="xs:string">
<xs:enumeration value="json"/>
<xs:enumeration value="xml"/>
<xs:enumeration value="json,xml"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="commonParameter">
<!-- in header key can be java key word -->
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="nameAlias" type="xs:string"/>
<!-- primitype or dto(packetprefix+this)in single or List:single -->
<xs:attribute name="dataType" type="xs:string" use="required"/>
<xs:attribute name="length" use="required">
<xs:simpleType>
<xs:restriction base="xs:positiveInteger">
<xs:maxInclusive value="1000"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="canBeNull" type="xs:boolean"/>
<xs:attribute name="remark" type="xs:string" use="required"/>
</xs:complexType>
</xs:schema>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/cmx0308/ddns.git
git@gitee.com:cmx0308/ddns.git
cmx0308
ddns
ddns
master

搜索帮助