import request from "../../common/request"

export default class FormDefinitionJsonService {
  save (inputForm) {
    return request({
      url: '/extension/formDefinitionJson/save',
      method: 'post',
      data: inputForm
    })
  }

  updatePrimary (id) {
    return request({
      url: '/extension/formDefinitionJson/updatePrimary',
      method: 'put',
      params: {id: id}
    })
  }

  delete (ids) {
    return request({
      url: '/extension/formDefinitionJson/delete',
      method: 'delete',
      params: {ids: ids}
    })
  }

  queryById (id) {
    return request({
      url: `/extension/formDefinitionJson/queryById`,
      method: 'get',
      params: {id: id}
    })
  }

  list (params) {
    return request({
      url: '/extension/formDefinitionJson/list',
      method: 'get',
      params: params
    })
  }
}
