Sfoglia il codice sorgente

接口参数修改

JoeLazy 3 mesi fa
parent
commit
549c28290f

+ 9 - 1
src/pages/internalEvaluation/configuration/InterfacePage.tsx

@@ -55,6 +55,11 @@ const InterfacePage: FC = () => {
       search: false,
       hideInTable: true,
     },
+    {
+      title: '接口编号',
+      dataIndex: 'interfaceNo',
+      hideInTable: false,
+    },
     {
       title: '接口名称',
       dataIndex: 'interfaceName',
@@ -359,7 +364,10 @@ const InterfacePage: FC = () => {
         >
           <SDAreaTtile title={"基本信息"}/>
           {/*<SDFormText name="id" label="id" disabled={true} width={'md'}/>*/}
+          <SDFormText name="interfaceNo" label="接口编号" width={'md'} required={true}/>
           <SDFormText name="interfaceName" label="接口名称" width={'md'} required={true}/>
+          <SDFormDict name="reqMethod" label="请求方式" dictKey={'INTERFACE_REQUEST_TYPE'} required={true}
+                      width={'md'}/>
           <SDFormDict name="interfaceTypeCode" label="接口类型" dictKey={'INTERFACE_TYPE'} required={true}
                       width={'md'}/>
           <SDFormText name="interfaceIp" label="IP" required={true}
@@ -382,12 +390,12 @@ const InterfacePage: FC = () => {
           <SDFormText name="interfaceUrl" label="地址" width={'md'} required={true}/>
           <SDFormDict name="reqContentTypeCode" label="内容类型" dictKey={'INTERFACE_CONTENT_TYPE'} width={'md'}/>
           <SDFormDict name="respParamTypeCode" label="接收参数类型" dictKey={'RECEIVE_PARAM_TYPE'} width={'md'}/>
+          <SDFormText name="reqBodyTemplate" label="报文体模板" type={'textarea'} width={'xl'}/>
           <SDFormText name="reqEncryptionLogic" label="加密逻辑" width={'xl'} type={'textarea'}/>
           <SDFormText name="decryptionLogic" label="解密逻辑" width={'xl'} type={'textarea'}/>
           <SDFormText name="processLogic" label="解密后处理逻辑" width={'xl'} type={'textarea'}/>
           <SDFormText name="classNameMapping" label="处理后对象映射" width={'md'}/>
           <SDFormText name="objNameMapping" label="映射后对象映射" width={'md'}/>
-          <SDFormText name="reqBodyTemplate" label="报文体模板" type={'textarea'} width={'xl'}/>
           {editType === 'display' && (
             <>
               <SDFormText name="createBy" label="创建人"/>

+ 10 - 0
src/services/internalEvaluation/configuration/Interface.ts

@@ -92,6 +92,16 @@ export type InterfaceModel = {
    * 参数列表
    */
   paramList: InterfaceParamModel[]
+
+  /**
+   * 请求方式
+   */
+  reqMethod:string
+
+  /**
+   * 接口编号
+   */
+  interfaceNo:string
 } & BasePageModel;
 
 /** 获取页面初始化查询 POST*/