feat: 增加了 openapi spec
diff --git a/payapi-spec/definitions.yaml b/payapi-spec/definitions.yaml
new file mode 100644
index 0000000..fea5324
--- /dev/null
+++ b/payapi-spec/definitions.yaml
@@ -0,0 +1,40 @@
+components:
+  headers:
+    TenantId:
+      name: X-Tenant-Id
+      in: header
+      description: 租户ID
+      required: true
+      schema:
+        type: string
+
+
+  schemas:
+    TransDate:
+      type: string
+      title: 交易日期
+      minLength: 8
+      maxLength: 8
+      pattern: '[0-9]*'
+    TransTime:
+      type: string
+      title: 交易时间
+      minLength: 6
+      maxLength: 6
+      pattern: '[0-9]*'
+    ShopAccNo:
+      type: string
+      title: 商户号
+      pattern: '[0-9]*'
+    Refno:
+      type: string
+      title: 交易号
+      minLength: 16
+      pattern: '[0-9]*'
+    QrcodeFormat:
+      type: string
+      title: Qrcode格式
+      enum:
+        - plain
+        - base64
+        - hex