138 Star 1.1K Fork 364

GVPcanonical-entropy/nop-entropy

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
api.xdef 3.22 KB
Copy Edit Raw Blame History
<?xml version="1.0" encoding="UTF-8" ?>
<api x:schema="/nop/schema/xdef.xdef" xmlns:x="/nop/schema/xdsl.xdef" xdef:name="ApiModel"
xdef:bean-package="io.nop.rpc.model" apiPackageName="package-name">
<description xdef:value="string"/>
<import from="!string" as="var-name" public="boolean" xdef:name="ApiImportModel" xdef:unique-attr="from">
<description xdef:value="string"/>
</import>
<option name="!string" value="!any" xdef:name="ApiOptionModel" xdef:unique-attr="name">
<description xdef:value="string"/>
</option>
<domains xdef:body-type="list" xdef:key-attr="name">
<!--
数据域定义。orm模型解析完毕之后,domain的定义会合并到column上。如果设置了domain是以domain的设置为准
-->
<domain name="!string" displayName="string" xdef:name="ApiDomainModel"
stdDomain="std-domain" stdSqlType="!std-sql-type" stdDataType="std-data-type"
precision="int" scale="int"/>
</domains>
<dicts xdef:body-type="list" xdef:key-attr="name">
<dict name="!string" xdef:ref="/nop/schema/orm/dict.xdef"/>
</dicts>
<!--
服务对象
-->
<services xdef:body-type="list" xdef:key-attr="name">
<service name="!var-name" className="!class-name" displayName="string" xdef:unique-attr="name"
tagSet="word-set" xdef:name="ApiServiceModel">
<description xdef:value="string"/>
<option name="!string" xdef:ref="ApiOptionModel" xdef:unique-attr="name"/>
<!--
服务方法。接收ApiRequest<T>类型的请求,返回ApiResponse<R>类型的响应
-->
<method name="!var-name" displayName="string" tagSet="word-set" xdef:unique-attr="name"
streamRequest="!boolean=false" streamResponse="!boolean=false"
requestMessage="class-name" responseMessage="!generic-type"
xdef:name="ApiMethodModel" mutation="!boolean=false">
<description xdef:value="string"/>
<option name="!string" xdef:ref="ApiOptionModel" xdef:unique-attr="name"/>
</method>
</service>
</services>
<!--
@name 服务消息的类名。在整个API定义范围内应该是唯一的。
-->
<messages xdef:body-type="list" xdef:key-attr="name">
<message name="!class-name" displayName="string" tagSet="word-set"
xdef:name="ApiMessageModel" xdef:unique-attr="name" baseClass="generic-type" interfaces="generic-type-list">
<description xdef:value="string"/>
<option name="!string" xdef:ref="ApiOptionModel" xdef:unique-attr="name"/>
<field name="!string" mandatory="!boolean=false" tagSet="word-set" propId="!int"
displayName="string" binaryScalarType="enum:io.nop.commons.type.BinaryScalarType" defaultValue="string"
xdef:unique-attr="name" xdef:name="ApiMessageFieldModel">
<description xdef:value="string"/>
<schema xdef:ref="/nop/schema/schema/schema.xdef"/>
<option name="!string" xdef:ref="ApiOptionModel" xdef:unique-attr="name"/>
</field>
</message>
</messages>
</api>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/canonical-entropy/nop-entropy.git
git@gitee.com:canonical-entropy/nop-entropy.git
canonical-entropy
nop-entropy
nop-entropy
master

Search