Blame view

src/api/ktfZhYhzk.js 830 Bytes
xiaomiao committed
1
/*
yuanbo committed
2
 * @Description  :用海状况相关api
xiaomiao committed
3
 * @Autor        : miaofang
yuanbo committed
4
 * @LastEditTime : 2023-05-17 10:35:41
xiaomiao committed
5
 */
任超 committed
6
import request from '@/utils/request'
7
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
任超 committed
8 9

class ktfZhYhzk {
yuanbo committed
10 11 12 13 14
  /**
   * @description: 用海状况
   * @param {*} bsmSjsb
   * @author: renchao
   */
任超 committed
15 16 17 18 19 20 21 22 23
  async getKtfZhYhzkById (bsmSjsb) {
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/KtfZhYhzk/detail',
      method: 'get',
      params: {
        bsmSjsb: bsmSjsb
      }
    })
  }
yuanbo committed
24 25 26 27 28
  /**
   * @description: 修改用海状况
   * @param {*} data
   * @author: renchao
   */
任超 committed
29 30 31 32 33 34 35 36
  async updateKtfZhYhzk (data) {
    return request({
      url: SERVER.SERVERAPI + '/rest/reg/KtfZhYhzk/edit',
      method: 'post',
      data
    })
  }
}
xiaomiao committed
37
export default new ktfZhYhzk()