Files
shz-admin/shihezi/2531.55d5b7f1.async.js

2 lines
5.8 KiB
JavaScript
Raw Normal View History

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2531],{12531:function(M,y,a){a.r(y),a.d(y,{addData:function(){return p},batchGenCode:function(){return k},genCode:function(){return H},getGenCode:function(){return j},getGenCodeList:function(){return I},importTables:function(){return c},previewCode:function(){return G},queryTableList:function(){return R},removeData:function(){return g},syncDbInfo:function(){return S},updateData:function(){return l}});var w=a(97857),b=a.n(w),v=a(15009),t=a.n(v),T=a(99289),o=a.n(T),_=a(76772),C=a(30964);function I(n){return E.apply(this,arguments)}function E(){return E=o()(t()().mark(function n(r){var s;return t()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return s=new URLSearchParams(r).toString(),d.abrupt("return",(0,_.request)("/api/code/gen/list?".concat(s),{data:r,method:"get",headers:{"Content-Type":"application/json;charset=UTF-8"}}));case 2:case"end":return d.stop()}},n)})),E.apply(this,arguments)}function j(n){return h.apply(this,arguments)}function h(){return h=o()(t()().mark(function n(r){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,_.request)("/api/code/gen/".concat(r),{method:"get",headers:{"Content-Type":"application/json;charset=UTF-8"}}));case 1:case"end":return e.stop()}},n)})),h.apply(this,arguments)}function R(n){return i.apply(this,arguments)}function i(){return i=o()(t()().mark(function n(r){var s;return t()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return s=new URLSearchParams(r).toString(),d.abrupt("return",(0,_.request)("/api/code/gen/db/list?".concat(s),{data:r,method:"get",headers:{"Content-Type":"application/json;charset=UTF-8"}}));case 2:case"end":return d.stop()}},n)})),i.apply(this,arguments)}function c(n){return u.apply(this,arguments)}function u(){return u=o()(t()().mark(function n(r){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,_.request)("/api/code/gen/importTable?tables=".concat(r),{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"}}));case 1:case"end":return e.stop()}},n)})),u.apply(this,arguments)}function g(n){return f.apply(this,arguments)}function f(){return f=o()(t()().mark(function n(r){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,_.request)("/api/code/gen/".concat(r.ids),{method:"delete",headers:{"Content-Type":"application/json;charset=UTF-8"}}));case 1:case"end":return e.stop()}},n)})),f.apply(this,arguments)}function p(n){return m.apply(this,arguments)}function m(){return m=o()(t()().mark(function n(r){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,_.request)("/api/code/gen",{method:"POST",data:b()({},r)}));case 1:case"end":return e.stop()}},n)})),m.apply(this,arguments)}function l(n){return D.apply(this,arguments)}function D(){return D=o()(t()().mark(function n(r){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,_.request)("/api/code/gen",{method:"PUT",data:b()({},r)}));case 1:case"end":return e.stop()}},n)})),D.apply(this,arguments)}function S(n){return O.apply(this,arguments)}function O(){return O=o()(t()().mark(function n(r){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,_.request)("/api/code/gen/synchDb/".concat(r),{method:"GET"}));case 1:case"end":return e.stop()}},n)})),O.apply(this,arguments)}function H(n){return L.apply(this,arguments)}function L(){return L=o()(t()().mark(function n(r){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,_.request)("/api/code/gen/genCode/".concat(r),{method:"GET"}));case 1:case"end":return e.stop()}},n)})),L.apply(this,arguments)}function k(n){return P.apply(this,arguments)}function P(){return P=o()(t()().mark(function n(r){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,C.p6)("/api/code/gen/batchGenCode?tables=".concat(r)));case 1:case"end":return e.s