aamin 2 лет назад
Родитель
Сommit
e82db173fc

+ 63 - 0
houtai/src/pages/A1Rule/TopicSetting/index.module.scss

@@ -0,0 +1,63 @@
+.TopicSetting {
+  width: 100%;
+  height: 100%;
+  display: flex;
+  flex-direction: column;
+  background-color: rgb(239, 239, 239);
+
+  :global {
+    .ruleTop {
+      border-radius: 4px;
+      padding: 15px 20px 25px 20px;
+      background-color: #fff;
+      box-shadow: 3px 0px 10px 0px #d5d5d9;
+      height: 100%;
+
+
+      .toprule {
+        display: flex;
+        justify-content: space-between;
+        align-items: start;
+        margin-bottom: 10px;
+
+        .pageTitle {
+          .exportBtn {
+            width: 100px;
+            height: 40px;
+          }
+        }
+
+        .addTopicBtn {
+          // position: absolute;
+          // right: 2.5%;
+          // top: 3%;
+          // height: 30px;
+          cursor: pointer;
+          margin-left: 20px;
+          // transform: translateY(-50%);
+        }
+      }
+
+
+
+      .tableBox1 {
+        border-radius: 4px;
+        overflow: hidden;
+        margin-top: -10px;
+        padding: 0px;
+
+        .ant-table-body {
+          height: 600px;
+          overflow-y: auto !important;
+          overflow-y: overlay !important;
+
+          .ant-table-row {
+            .ant-table-cell {
+              padding: 10px;
+            }
+          }
+        }
+      }
+    }
+  }
+}

+ 115 - 0
houtai/src/pages/A1Rule/TopicSetting/index.tsx

@@ -0,0 +1,115 @@
+import React, { useMemo, useRef, useState } from "react";
+import styles from "./index.module.scss";
+import { Button, Popconfirm, Table } from "antd";
+import { useSelector } from "react-redux";
+import { RootState } from "@/store";
+type Props = {
+  closeFu: () => void;
+};
+function TopicSetting({ closeFu }: Props) {
+  const pageNumRef = useRef(1);
+  const pagePageRef = useRef(10);
+  // 筛选和分页
+  const [tableSelect, setTableSelect] = useState({
+    searchKey: "",
+    pageSize: 10,
+    pageNum: 1,
+    startTime: "",
+    endTime: "",
+  });
+
+  // 页码变化
+  const paginationChange = (pageNum: number, pageSize: number) => {
+    pageNumRef.current = pageNum;
+    pagePageRef.current = pageSize;
+    setTableSelect({ ...tableSelect, pageNum, pageSize });
+  };
+
+  const results = useSelector((state: RootState) => state.A7Log.tableInfo);
+
+  const columns = useMemo(() => {
+    return [
+      {
+        width: 100,
+        title: "序号",
+        render: (text: any, record: any, index: any) =>
+          index + 1 + (pageNumRef.current - 1) * pagePageRef.current,
+      },
+      {
+        title: "时间",
+        dataIndex: "createTime",
+      },
+      {
+        title: "类型",
+        dataIndex: "type",
+      },
+      {
+        title: "积分",
+        dataIndex: "type",
+      },
+      {
+        title: "说明",
+        dataIndex: "description",
+      },
+    ];
+  }, []);
+
+  return (
+    <div className={styles.TopicSetting}>
+      <div className="ruleTop">
+        <div className="toprule">
+          <div className="pageTitle">
+            <div>助农课堂 题目设置</div>
+          </div>
+          <Button className="addTopicBtn" size="middle" type="primary">
+            新增
+          </Button>
+        </div>
+        {/* 表格主体 */}
+        <div className="tableBox1">
+          <Table
+            scroll={{ y: 625 }}
+            dataSource={results.list}
+            columns={columns}
+            rowKey="id"
+            pagination={{
+              showQuickJumper: true,
+              position: ["bottomCenter"],
+              showSizeChanger: true,
+              current: tableSelect.pageNum,
+              pageSize: tableSelect.pageSize,
+              total: results.total,
+              onChange: paginationChange,
+            }}
+          />
+        </div>
+        {/* 确认/取消按钮 */}
+        <div style={{marginTop: '10px'}}>
+          <Button type="primary" htmlType="submit">
+            提交
+          </Button>
+          &emsp;
+          <Popconfirm
+            title="放弃编辑后,信息将不会保存!"
+            okText="放弃"
+            cancelText="取消"
+            onConfirm={() => {
+              closeFu();
+            }}
+            okButtonProps={{ loading: false }}
+          >
+            <Button>取消</Button>
+          </Popconfirm>
+        </div>
+      </div>
+
+      {/* <Button className="scoreLimitBtn" size="middle" type="primary">
+        新增
+      </Button> */}
+    </div>
+  );
+}
+
+const MemoTopicSetting = React.memo(TopicSetting);
+
+export default MemoTopicSetting;

+ 123 - 106
houtai/src/pages/A1Rule/index.tsx

@@ -16,10 +16,14 @@ import {
   scoreLimitSaveAPI,
 } from "@/store/action/A1Rule";
 import RuleEdit from "./RuleEdit";
+import TopicSetting from "./TopicSetting";
 import { MessageFu } from "@/utils/message";
 function A1Rule() {
   const dispatch = useDispatch();
 
+  // 打开题目设置页面
+  const [topicSettingShow, setTopicSettingShow] = useState(false);
+
   // 从仓库中获取表格数据
   const tableInfo = useSelector((state: RootState) => state.A1Rule.tableInfo);
 
@@ -96,7 +100,13 @@ function A1Rule() {
               >
                 编辑
               </Button>
-              <Button size="small" type="text">
+              <Button
+                size="small"
+                type="text"
+                onClick={() => {
+                  setTopicSettingShow(true);
+                }}
+              >
                 设置题目
               </Button>
             </>
@@ -151,117 +161,124 @@ function A1Rule() {
   useEffect(() => {
     dispatch(getRuleAPI());
   }, [dispatch]);
-  return (
-    <div className={styles.A1Rule}>
-      <div className="ruleTop">
-        <div className="pageTitle">游戏规则</div>
-        <button
-          className="scoreLimitBtn"
-          onClick={() => {
-            console.log("打开");
-            setLimitScoreShow(true);
-          }}
-        >
-          单日可获得积分上线:5000
-        </button>
-        {/* 表格主体 */}
-        <div className="tableBox1">
-          <Table
-            scroll={{ y: 500 }}
-            bordered={false}
-            dataSource={tableInfo.list}
-            columns={columns}
-            rowKey="id"
-            pagination={{
-              showQuickJumper: true,
-              position: ["bottomCenter"],
-              showSizeChanger: true,
-              total: tableInfo.total,
+  return topicSettingShow ? (
+    <>
+      <div className={styles.A1Rule}>
+        <div className="ruleTop">
+          <div className="pageTitle">游戏规则</div>
+          <button
+            className="scoreLimitBtn"
+            onClick={() => {
+              console.log("打开");
+              setLimitScoreShow(true);
             }}
-          />
+          >
+            单日可获得积分上线:5000
+          </button>
+          {/* 表格主体 */}
+          <div className="tableBox1">
+            <Table
+              scroll={{ y: 500 }}
+              bordered={false}
+              dataSource={tableInfo.list}
+              columns={columns}
+              rowKey="id"
+              pagination={{
+                showQuickJumper: true,
+                position: ["bottomCenter"],
+                showSizeChanger: true,
+                total: tableInfo.total,
+              }}
+            />
+          </div>
         </div>
-      </div>
-      <div className="ruleTop ruleBottom">
-        <div className="pageTitle">线上展厅</div>
-        {/* 表格主体 */}
-        <div className="tableBox2">
-          <Table
-            scroll={{ y: 500 }}
-            bordered={false}
-            dataSource={tableInfo.list}
-            columns={columns2}
-            rowKey="id"
-            pagination={{
-              showQuickJumper: true,
-              position: ["bottomCenter"],
-              showSizeChanger: true,
-              total: tableInfo.total,
-            }}
-          />
+        <div className="ruleTop ruleBottom">
+          <div className="pageTitle">线上展厅</div>
+          {/* 表格主体 */}
+          <div className="tableBox2">
+            <Table
+              scroll={{ y: 500 }}
+              bordered={false}
+              dataSource={tableInfo.list}
+              columns={columns2}
+              rowKey="id"
+              pagination={{
+                showQuickJumper: true,
+                position: ["bottomCenter"],
+                showSizeChanger: true,
+                total: tableInfo.total,
+              }}
+            />
+          </div>
         </div>
-      </div>
-      {/* 点击游戏编辑 */}
-      {editPageShow && editMode.current === 1 ? (
-        <RuleEdit
-          id={editId.current}
-          closePage={() => setEditPageShow(false)}
-          upTableList={getList}
-          editMode={editMode.current}
-        />
-      ) : null}
-      {/* 设置积分上线弹窗 */}
-      <Modal
-        destroyOnClose
-        closable={false}
-        maskClosable={false}
-        open={limitScoreShow}
-        title="   "
-        onCancel={() => setLimitScoreShow(false)}
-        footer={
-          [] // 设置footer为空,去掉 取消 确定默认按钮
-        }
-      >
-        <Form
-          form={form}
-          name="basic"
-          labelCol={{ span: 8 }}
-          onFinish={onFinish}
-          autoComplete="off"
+        {/* 点击游戏编辑 */}
+        {editPageShow && editMode.current === 1 ? (
+          <RuleEdit
+            id={editId.current}
+            closePage={() => setEditPageShow(false)}
+            upTableList={getList}
+            editMode={editMode.current}
+          />
+        ) : null}
+        {/* 设置积分上线弹窗 */}
+        <Modal
+          destroyOnClose
+          closable={false}
+          maskClosable={false}
+          open={limitScoreShow}
+          title="   "
+          onCancel={() => setLimitScoreShow(false)}
+          footer={
+            [] // 设置footer为空,去掉 取消 确定默认按钮
+          }
         >
-          <Form.Item
-            label="单日可获得积分上限"
-            name="numberVal"
-            style={{ marginTop: "40px" }}
-            rules={[{ required: true, message: "不能为空!" }]}
-            hide-required-asterisk={true}
-            getValueFromEvent={(e) =>
-              e.target.value.replace(/^(0+)|[^\d]+/g, "")
-            }
+          <Form
+            form={form}
+            name="basic"
+            labelCol={{ span: 8 }}
+            onFinish={onFinish}
+            autoComplete="off"
           >
-            <Input maxLength={9} placeholder="请输入正整数,不超过999999999" />
-          </Form.Item>
-          {/* 确定和取消按钮 */}
-          <br />
-          <Form.Item wrapperCol={{ offset: 9, span: 16 }}>
-            <Button type="primary" htmlType="submit">
-              提交
-            </Button>
-            &emsp;
-            <Popconfirm
-              title="放弃编辑后,信息将不会保存!"
-              okText="放弃"
-              cancelText="取消"
-              onConfirm={() => {
-                setLimitScoreShow(false);
-              }}
-              okButtonProps={{ loading: false }}
+            <Form.Item
+              label="单日可获得积分上限"
+              name="numberVal"
+              style={{ marginTop: "40px" }}
+              rules={[{ required: true, message: "不能为空!" }]}
+              hide-required-asterisk={true}
+              getValueFromEvent={(e) =>
+                e.target.value.replace(/^(0+)|[^\d]+/g, "")
+              }
             >
-              <Button>取消</Button>
-            </Popconfirm>
-          </Form.Item>
-        </Form>
-      </Modal>
-    </div>
+              <Input
+                maxLength={9}
+                placeholder="请输入正整数,不超过999999999"
+              />
+            </Form.Item>
+            {/* 确定和取消按钮 */}
+            <br />
+            <Form.Item wrapperCol={{ offset: 9, span: 16 }}>
+              <Button type="primary" htmlType="submit">
+                提交
+              </Button>
+              &emsp;
+              <Popconfirm
+                title="放弃编辑后,信息将不会保存!"
+                okText="放弃"
+                cancelText="取消"
+                onConfirm={() => {
+                  setLimitScoreShow(false);
+                }}
+                okButtonProps={{ loading: false }}
+              >
+                <Button>取消</Button>
+              </Popconfirm>
+            </Form.Item>
+          </Form>
+        </Modal>
+      </div>
+    </>
+  ) : (
+    <TopicSetting closeFu={() => setTopicSettingShow(false)} />
   );
 }
 

+ 34 - 0
houtai/src/pages/A6IDUser/IntegralEdit/index.module.scss

@@ -0,0 +1,34 @@
+.IntegralEdit {
+  width: 100%;
+  height: 100%;
+  display: flex;
+  flex-direction: column;
+  background-color: rgb(239, 239, 239);
+
+  :global {
+    .pageTitle {
+      font-size: 25px;
+      display: flex;
+      justify-content: space-between;
+      
+      &:nth-child(2) {
+        margin-left: 10px;
+      }
+    }
+
+    .pageTitle::before {
+      background: none;
+    }
+
+    .tableMain {
+      border-radius: 10px;
+      height: calc(100%);
+      background-color: #fff;
+
+      .ant-table-body {
+        height: 500px;
+
+      }
+    }
+  }
+}

+ 221 - 0
houtai/src/pages/A6IDUser/IntegralEdit/index.tsx

@@ -0,0 +1,221 @@
+import { RootState } from "@/store";
+import { Button, Form, Input, Modal, Popconfirm, Table } from "antd";
+import React, {
+  useCallback,
+  useEffect,
+  useMemo,
+  useRef,
+  useState,
+} from "react";
+import { useDispatch, useSelector } from "react-redux";
+
+import styles from "./index.module.scss";
+import {
+  IDUserScoreSaveAPI,
+  getIDUserInfoByIdAPI,
+} from "@/store/action/A6IDUser";
+import { IDUserType, SaveIDUserScoreType } from "@/types";
+import { MessageFu } from "@/utils/message";
+type Props = {
+  id: number; //用户id
+  closeFu: () => void;
+};
+
+function IntegralEdit({ id,closeFu }: Props) {
+  const dispatch = useDispatch();
+
+  const pageNumRef = useRef(1);
+  const pagePageRef = useRef(10);
+  // 筛选和分页
+  const [tableSelect, setTableSelect] = useState({
+    searchKey: "",
+    pageSize: 10,
+    pageNum: 1,
+    startTime: "",
+    endTime: "",
+  });
+
+  // 获取当前用户信息
+  const [curIDUser, setCurIDUser] = useState<IDUserType>({
+    id: 1,
+    name: "用户1",
+  } as IDUserType);
+
+  const getInfoById = useCallback(async () => {
+    const res = await getIDUserInfoByIdAPI(id);
+    if (res.code === 0) {
+      setCurIDUser(res.data);
+    }
+  }, [id]);
+
+  useEffect(() => {
+    pageNumRef.current = tableSelect.pageNum;
+    pagePageRef.current = tableSelect.pageSize;
+    getInfoById();
+  }, [dispatch, getInfoById, tableSelect]);
+
+  // ---------关于表格
+
+  // 页码变化
+  const paginationChange = (pageNum: number, pageSize: number) => {
+    pageNumRef.current = pageNum;
+    pagePageRef.current = pageSize;
+    setTableSelect({ ...tableSelect, pageNum, pageSize });
+  };
+
+  const results = useSelector((state: RootState) => state.A7Log.tableInfo);
+
+  const columns = useMemo(() => {
+    return [
+      {
+        title: "时间",
+        dataIndex: "createTime",
+      },
+      {
+        title: "类型",
+        dataIndex: "type",
+      },
+      {
+        title: "积分",
+        dataIndex: "type",
+      },
+      {
+        title: "说明",
+        dataIndex: "description",
+      },
+    ];
+  }, []);
+
+  // 修改积分弹窗开关
+  const [editIntegralVisible, setEditIntegralVisible] = useState(false);
+  const [form] = Form.useForm();
+
+  const onFinish = useCallback(
+    async (values: any) => {
+      if (values.numberVal) {
+        const res: any = await IDUserScoreSaveAPI({} as SaveIDUserScoreType);
+        if (res.code === 0) {
+          MessageFu.success("提交成功!");
+          pageNumRef.current = tableSelect.pageNum;
+          pagePageRef.current = tableSelect.pageSize;
+          getInfoById();
+          setEditIntegralVisible(false);
+        }
+      }
+    },
+    [getInfoById, tableSelect.pageNum, tableSelect.pageSize]
+  );
+
+  return (
+    <div className={styles.IntegralEdit}>
+      <div className="pageTitle">
+        <div>{curIDUser.name}</div>
+        <div>当前积分:5000</div>
+        <div>
+          <Button
+            className="scoreLimitBtn"
+            size="middle"
+            type="primary"
+            onClick={() => setEditIntegralVisible(true)}
+          >
+            修改积分
+          </Button>
+          <Button
+            className="scoreLimitBtn"
+            size="middle"
+            type="primary"
+            style={{ marginLeft: "10px" }}
+            onClick={() => closeFu()}
+          >
+            返回
+          </Button>
+        </div>
+      </div>
+      {/* 表格主体 */}
+      <div className="tableMain">
+        <Table
+          scroll={{ y: 625 }}
+          dataSource={results.list}
+          columns={columns}
+          rowKey="id"
+          pagination={{
+            showQuickJumper: true,
+            position: ["bottomCenter"],
+            showSizeChanger: true,
+            current: tableSelect.pageNum,
+            pageSize: tableSelect.pageSize,
+            total: results.total,
+            onChange: paginationChange,
+          }}
+        />
+      </div>
+      {/* 修改积分 */}
+      <Modal
+        destroyOnClose
+        closable={false}
+        maskClosable={false}
+        open={editIntegralVisible}
+        title="   "
+        onCancel={() => setEditIntegralVisible(false)}
+        footer={
+          [] // 设置footer为空,去掉 取消 确定默认按钮
+        }
+      >
+        <Form
+          form={form}
+          name="basic"
+          labelCol={{ span: 8 }}
+          onFinish={onFinish}
+          autoComplete="off"
+        >
+          <Form.Item
+            label="积分变动"
+            name="numberVal"
+            style={{ marginTop: "40px" }}
+            rules={[{ required: true, message: "不能为空!" }]}
+            hide-required-asterisk={true}
+            getValueFromEvent={(e) =>
+              e.target.value.replace(/^(0+)|[^\d]+/g, "")
+            }
+          >
+            <Input
+              max={99999}
+              min={-99999}
+              placeholder="请输入-99999至99999的整数"
+            />
+          </Form.Item>
+          <Form.Item
+            label="积分原因"
+            style={{ marginTop: "40px" }}
+            hide-required-asterisk={true}
+          >
+            <Input maxLength={200} placeholder="请输入说明,不超过200字" />
+          </Form.Item>
+          {/* 确定和取消按钮 */}
+          <br />
+          <Form.Item wrapperCol={{ offset: 9, span: 16 }}>
+            <Button type="primary" htmlType="submit">
+              提交
+            </Button>
+            &emsp;
+            <Popconfirm
+              title="放弃编辑后,信息将不会保存!"
+              okText="放弃"
+              cancelText="取消"
+              onConfirm={() => {
+                setEditIntegralVisible(false);
+              }}
+              okButtonProps={{ loading: false }}
+            >
+              <Button>取消</Button>
+            </Popconfirm>
+          </Form.Item>
+        </Form>
+      </Modal>
+    </div>
+  );
+}
+
+const MemoIntegralEdit = React.memo(IntegralEdit);
+
+export default MemoIntegralEdit;

+ 26 - 10
houtai/src/pages/A6IDUser/index.tsx

@@ -1,11 +1,18 @@
 import { RootState } from "@/store";
 import { getLogListAPI } from "@/store/action/A7Log";
 import { Input, DatePicker, Table, Button, Popconfirm } from "antd";
-import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
+import React, {
+  useCallback,
+  useEffect,
+  useMemo,
+  useRef,
+  useState,
+} from "react";
 import { useDispatch, useSelector } from "react-redux";
 import history from "@/utils/history";
 import styles from "./index.module.scss";
 import { IDUserTableType } from "@/types/api/A6IDUser";
+import IntegralEdit from "./IntegralEdit";
 
 const { RangePicker } = DatePicker;
 
@@ -75,16 +82,16 @@ function A6IDUser() {
     setTableSelect({ ...tableSelect, pageNum, pageSize });
   };
 
+  const [currentItem, setCurrentItem] = useState<IDUserTableType>({
+    id: 0,
+  } as IDUserTableType);
+
   const results = useSelector((state: RootState) => state.A7Log.tableInfo);
 
+  const [editPageShow, setEditPageShow] = useState(false);
+
   const columns = useMemo(() => {
     return [
-      // {
-      //   width: 100,
-      //   title: "序号",
-      //   render: (text: any, record: any, index: any) =>
-      //     index + 1 + (pageNumRef.current - 1) * pagePageRef.current,
-      // },
       {
         title: "用户名",
         dataIndex: "userName",
@@ -110,7 +117,14 @@ function A6IDUser() {
         render: (item: IDUserTableType) => {
           return (
             <>
-              <Button size="small" type="text" onClick={() => pathCutFu('/integral')}>
+              <Button
+                size="small"
+                type="text"
+                onClick={() => {
+                  setCurrentItem(item);
+                  setEditPageShow(true);
+                }}
+              >
                 积分管理
               </Button>
               <Popconfirm
@@ -136,9 +150,9 @@ function A6IDUser() {
     ];
   }, []);
 
-  return (
+  return !editPageShow ? (
     <div className={styles.A6IDUser}>
-      <div className="pageTitle">兑换记录</div>
+      <div className="pageTitle">用户管理</div>
       <div className="logTop">
         <div className="tableSelectBox">
           <div className="row">
@@ -188,6 +202,8 @@ function A6IDUser() {
         />
       </div>
     </div>
+  ) : (
+    <IntegralEdit id={currentItem.id} closeFu={() => setEditPageShow(false)} />
   );
 }
 

+ 6 - 4
houtai/src/store/action/A1Rule.ts

@@ -29,7 +29,6 @@ export const getRuleInfoByIdAPI = (id: number) => {
   return http.get(`sys/user/detail/${id}`);
 };
 
-
 /**
  * 获得每日积分上限
  */
@@ -37,7 +36,6 @@ export const getScoreLimitAPI = () => {
   return http.get("sys/user/save");
 };
 
-
 /**
  * 保存每日积分上限
  */
@@ -45,5 +43,9 @@ export const scoreLimitSaveAPI = (data: SaveScoreLimitType) => {
   return http.post("sys/user/save", data);
 };
 
-
-
+/**
+ * 获取助农课堂题目列表
+ */
+export const getTopicByZhuNongKeTangAPI = (data: any) => {
+  return http.post("sys/log/list", data);
+};

+ 33 - 0
houtai/src/store/action/A6IDUser.ts

@@ -0,0 +1,33 @@
+import http from "@/utils/http";
+import { AppDispatch } from "..";
+import { SaveIDUserScoreType } from "@/types";
+/**
+ * 获取日志表格列表
+ */
+export const getIDUserListAPI = (data: any) => {
+  return async (dispatch: AppDispatch) => {
+    const res = await http.post("sys/log/list", data);
+    if (res.code === 0) {
+      const obj = {
+        list: res.data.records,
+        total: res.data.total,
+      };
+      dispatch({ type: "iduser/getList", payload: obj });
+    }
+  };
+};
+
+/**
+ * 用户-获得用户积分记录
+ */
+export const getIDUserInfoByIdAPI = (id: number) => {
+  return http.get(`sys/user/editStatus/${id}`);
+};
+
+
+/**
+ * 保存用户积分修改
+ */
+export const IDUserScoreSaveAPI = (data: SaveIDUserScoreType) => {
+  return http.post("sys/user/save", data);
+};

+ 27 - 0
houtai/src/store/reducer/A6IDUser.ts

@@ -0,0 +1,27 @@
+import { IDUserTableType } from "@/types";
+
+// 初始化状态
+const initState = {
+  // 列表数据
+  tableInfo: {
+    list: [] as IDUserTableType[],
+    total: 0,
+  },
+};
+
+// 定义 action 类型
+type IDUserActionType = {
+  type: "iduser/getList";
+  payload: { list: IDUserTableType[]; total: number };
+};
+
+// 频道 reducer
+export default function logReducer(state = initState, action: IDUserActionType) {
+  switch (action.type) {
+    // 获取列表数据
+    case "iduser/getList":
+      return { ...state, tableInfo: action.payload };
+    default:
+      return state;
+  }
+}

+ 3 - 1
houtai/src/store/reducer/index.ts

@@ -9,6 +9,7 @@ import A3User from './A3User'
 import A4Prise from './A4Prise'
 import TopicSetting from './TopicSetting'
 
+import A6IDUser from './A6IDUser'
 import A7Log from './A7Log'
 import A2Integral from './A2Integral'
 
@@ -20,7 +21,8 @@ const rootReducer = combineReducers({
   A4Prise,
   A7Log,
   A2Integral,
-  TopicSetting
+  TopicSetting,
+  A6IDUser
 })
 
 // 默认导出

+ 27 - 0
houtai/src/types/api/A6IDUser.ts

@@ -8,4 +8,31 @@ export type IDUserTableType = {
   type: string;
   updateTime: null;
   userName: string;
+}
+
+
+export type IDUserType = {
+  createTime: string;
+  creatorId: null;
+  creatorName: string;
+  description: string;
+  id: number;
+  ip: string;
+  type: string;
+  updateTime: null;
+  userName: string;
+  name: string;
+}
+
+export type SaveIDUserScoreType = {
+  createTime: string;
+  creatorId: null;
+  creatorName: string;
+  description: string;
+  id: number;
+  ip: string;
+  type: string;
+  updateTime: null;
+  userName: string;
+  name: string;
 }

+ 1 - 0
houtai/src/types/index.d.ts

@@ -6,6 +6,7 @@ export * from './api/A3User'
 export * from './api/A4Role'
 export * from './api/A4Prize'
 export * from './api/A5Log'
+export * from './api/A6IDUser'
 export * from './api/A2Integral'