Riku
2025-09-20 32eedf2857255cf29985ffc0cc73e75eccda39bf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { $fysp } from '../index';
 
/**
 * 工地夜间施工许可证相关API
 */
export default {
  /**
   * 查询工地夜间施工许可证
   */
  fetchRecord({ cityCode, districtCode, page, perPage = 20 }) {
    return $fysp
      .get(`nightwork/record/all`, {
        params: { cityCode, districtCode, page, perPage }
      })
      .then((res) => res.data);
  },
 
  /**
   * 更新工地夜间施工许可证
   * @param {*} param0 
   * @returns 
   */
  updateRecord({ recordId, userId, sceneId }) {
    return $fysp
      .post(`nightwork/record`, undefined, {
        params: { recordId, userId, sceneId }
      })
      .then((res) => res.data);
  }
};