Browse Source

feat: 账号可以隐藏

fanmiyou
nili 7 months ago
parent
commit
9c96c32eaa
  1. 1
      dist/134.6fc81d91.async.js
  2. 1
      dist/134.957d5baa.async.js
  3. 272
      dist/168.01472d0e.async.js
  4. 3
      dist/169.57647c7d.async.js
  5. 3
      dist/169.c5babfbf.async.js
  6. 97
      dist/335.78ea2fbf.async.js
  7. 287
      dist/364.782d5fa1.async.js
  8. 1
      dist/397.0ef2ea1f.async.js
  9. 1
      dist/397.fb5f72c1.async.js
  10. 1
      dist/470.bb8d466d.async.js
  11. 108
      dist/491.ddc0d25a.async.js
  12. 83
      dist/51.a2ea1b3b.async.js
  13. 83
      dist/51.d90b1fa5.async.js
  14. 8
      dist/559.016bfdbb.async.js
  15. 8
      dist/559.683b9a7b.async.js
  16. 2
      dist/60.7143e42f.async.js
  17. 96
      dist/601.f0684ea2.async.js
  18. 57
      dist/750.d34920f3.async.js
  19. 42
      dist/822.ac7ab1f5.async.js
  20. 164
      dist/86.b26c32d8.async.js
  21. 27
      dist/89.d8aaef40.async.js
  22. 27
      dist/89.ee83384e.async.js
  23. 1
      dist/905.6e225d1b.async.js
  24. 1
      dist/905.745134cb.async.js
  25. 58
      dist/930.66e0f98d.async.js
  26. 59
      dist/930.fca7adbf.async.js
  27. 42
      dist/991.a4a764f4.async.js
  28. 1
      dist/_umi_route_preload_helper.a276797c.js
  29. 13
      dist/index.html
  30. 1
      dist/p__AdminManagement.134f48d1.async.js
  31. 1
      dist/p__AdminManagement.5cedcbf4.async.js
  32. 1
      dist/p__AdvRecordList.6031b104.async.js
  33. 1
      dist/p__AdvRecordList.99b0bbec.async.js
  34. 1
      dist/p__AppManagement.26abbc6f.async.js
  35. 1
      dist/p__AppManagement.50f52b64.async.js
  36. 10
      dist/p__Bind.a80b7711.async.js
  37. 10
      dist/p__Bind.bfb7c4f6.async.js
  38. 1
      dist/p__DeviceOverview.80620b07.async.js
  39. 1
      dist/p__DeviceOverview.cc8f1771.async.js
  40. 2
      dist/p__DeviceOwnerApp.ede954ff.async.js
  41. 1
      dist/p__Overview.f1f0c4a9.async.js
  42. 1
      dist/p__Overview.f23404e9.async.js
  43. 1
      dist/p__User__Login__index.0020071b.async.js
  44. 1
      dist/p__User__Login__index.79522455.async.js
  45. 1
      dist/p__Welcome.70b2426d.async.js
  46. 1
      dist/p__Welcome.8c10044c.async.js
  47. 2
      dist/t__plugin-layout__Layout.bb80f58e.async.js
  48. 426
      dist/umi.7e880ffe.js
  49. 433
      dist/umi.f2ee2082.js
  50. 68
      src/pages/Admin/AdminHideForm.tsx
  51. 55
      src/pages/AdminManagement.tsx
  52. 46
      src/services/matrix/admin.ts
  53. 18
      src/services/matrix/appController.ts
  54. 12
      src/services/matrix/index.ts
  55. 114
      src/services/matrix/loginController.ts
  56. 170
      src/services/matrix/matrixAppConfigController.ts
  57. 93
      src/services/matrix/matrixController.ts
  58. 27
      src/services/matrix/matrixMoneyController.ts
  59. 15
      src/services/matrix/matrixUserController.ts
  60. 319
      src/services/matrix/typings.d.ts

1
dist/134.6fc81d91.async.js

File diff suppressed because one or more lines are too long

1
dist/134.957d5baa.async.js

File diff suppressed because one or more lines are too long

272
dist/168.01472d0e.async.js

File diff suppressed because one or more lines are too long

3
dist/169.57647c7d.async.js

File diff suppressed because one or more lines are too long

3
dist/169.c5babfbf.async.js

File diff suppressed because one or more lines are too long

97
dist/335.78ea2fbf.async.js

File diff suppressed because one or more lines are too long

287
dist/364.782d5fa1.async.js

File diff suppressed because one or more lines are too long

1
dist/397.0ef2ea1f.async.js

File diff suppressed because one or more lines are too long

1
dist/397.fb5f72c1.async.js

File diff suppressed because one or more lines are too long

1
dist/470.bb8d466d.async.js

File diff suppressed because one or more lines are too long

108
dist/491.ddc0d25a.async.js

File diff suppressed because one or more lines are too long

83
dist/51.a2ea1b3b.async.js

File diff suppressed because one or more lines are too long

83
dist/51.d90b1fa5.async.js

File diff suppressed because one or more lines are too long

8
dist/559.016bfdbb.async.js

File diff suppressed because one or more lines are too long

8
dist/559.683b9a7b.async.js

File diff suppressed because one or more lines are too long

2
dist/60.16c1b5e4.async.js → dist/60.7143e42f.async.js

File diff suppressed because one or more lines are too long

96
dist/601.f0684ea2.async.js

File diff suppressed because one or more lines are too long

57
dist/750.d34920f3.async.js

File diff suppressed because one or more lines are too long

42
dist/822.ac7ab1f5.async.js

File diff suppressed because one or more lines are too long

164
dist/86.b26c32d8.async.js

File diff suppressed because one or more lines are too long

27
dist/89.d8aaef40.async.js

File diff suppressed because one or more lines are too long

27
dist/89.ee83384e.async.js

File diff suppressed because one or more lines are too long

1
dist/905.6e225d1b.async.js

File diff suppressed because one or more lines are too long

1
dist/905.745134cb.async.js

File diff suppressed because one or more lines are too long

58
dist/930.66e0f98d.async.js

File diff suppressed because one or more lines are too long

59
dist/930.fca7adbf.async.js

File diff suppressed because one or more lines are too long

42
dist/991.a4a764f4.async.js

File diff suppressed because one or more lines are too long

1
dist/_umi_route_preload_helper.a276797c.js

@ -0,0 +1 @@
!function(){"use strict";var t="/".replace(/([^/])$/,"$1/"),e=location.pathname,n=e.startsWith(t)&&decodeURI("/".concat(e.slice(t.length)));if(n){var a=document,c=a.head,r=a.createElement.bind(a),i=function(t,e,n){var a,c=e.r[t]||(null===(a=Object.entries(e.r).find((function(e){var n=e[0];return new RegExp("^".concat(n.replace(/\/:[^/]+/g,"/[^/]+").replace("/*","/.+"),"$")).test(t)})))||void 0===a?void 0:a[1]);return null==c?void 0:c.map((function(t){var a=e.f[t][1],c=e.f[t][0];return{type:c.split(".").pop(),url:"".concat(n.publicPath).concat(c),attrs:[["data-".concat(e.b),"".concat(e.p,":").concat(a)]]}}))}(n,{"p":"ant-design-pro","b":"webpack","f":[["p__AppManagement.26abbc6f.async.js",39],["51.a2ea1b3b.async.js",51],["60.7143e42f.async.js",60],["89.ee83384e.async.js",89],["134.6fc81d91.async.js",134],["169.57647c7d.async.js",169],["p__Welcome.8c10044c.async.js",185],["t__plugin-layout__Layout.6cae69f5.chunk.css",301],["t__plugin-layout__Layout.bb80f58e.async.js",301],["335.78ea2fbf.async.js",335],["364.782d5fa1.async.js",364],["p__User__Login__index.0020071b.async.js",366],["p__DeviceOwnerApp.ede954ff.async.js",371],["390.41467286.async.js",390],["397.fb5f72c1.async.js",397],["491.ddc0d25a.async.js",491],["p__Bind.bfb7c4f6.async.js",557],["559.016bfdbb.async.js",559],["p__404.0c100574.async.js",571],["p__DeviceOverview.80620b07.async.js",581],["p__Overview.f1f0c4a9.async.js",628],["750.d34920f3.async.js",750],["p__AdminManagement.5cedcbf4.async.js",816],["822.ac7ab1f5.async.js",822],["p__AdvRecordList.6031b104.async.js",857],["905.6e225d1b.async.js",905],["930.fca7adbf.async.js",930]],"r":{"/*":[18,25],"/":[3,4,7,8,17,25],"/welcome":[2,6,3,4,7,8,17,25],"/overview":[2,4,5,10,15,17,20,21,23,26,3,7,8,25],"/advList":[1,2,4,5,9,10,21,23,24,25,26,3,7,8,17],"/appList":[1,2,4,5,9,10,12,21,23,25,26,3,7,8,17],"/incomeOverview":[2,4,5,10,15,17,19,21,23,26,3,7,8,25],"/adminList":[1,5,22,23,3,4,7,8,17,25],"/bind":[4,5,14,16,17,26,3,7,8,25],"/appManage":[0,1,2,4,5,9,10,14,21,23,25,26,3,7,8,17],"/user/login":[2,4,5,10,11,23]}},{publicPath:"/"});null==i||i.forEach((function(t){var e,n=t.type,a=t.url;if("js"===n)(e=r("script")).src=a,e.async=!0;else{if("css"!==n)return;(e=r("link")).href=a,e.rel="preload",e.as="style"}t.attrs.forEach((function(t){e.setAttribute(t[0],t[1]||"")})),c.appendChild(e)}))}}();

13
dist/index.html

@ -1,14 +1,17 @@
<!DOCTYPE html><html><head> <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="shortcut icon" href="logo.png"> <link rel="shortcut icon" href="logo.png">
<title>Ant Design Pro</title> <title>Ant Design Pro</title>
<link rel="stylesheet" href="/umi.f9018446.css"> <link rel="stylesheet" href="/umi.f9018446.css">
<script async="" src="/scripts/loading.js"></script> <script async src="/scripts/loading.js"></script>
<script src="/_umi_route_preload_helper.a276797c.js"></script>
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>
<script src="/umi.f2ee2082.js"></script> <script src="/umi.7e880ffe.js"></script>
</body>
</body></html> </html>

1
dist/p__AdminManagement.134f48d1.async.js

File diff suppressed because one or more lines are too long

1
dist/p__AdminManagement.5cedcbf4.async.js

File diff suppressed because one or more lines are too long

1
dist/p__AdvRecordList.6031b104.async.js

File diff suppressed because one or more lines are too long

1
dist/p__AdvRecordList.99b0bbec.async.js

File diff suppressed because one or more lines are too long

1
dist/p__AppManagement.26abbc6f.async.js

@ -0,0 +1 @@
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[39],{40110:function(y,c,e){var E=e(1413),s=e(67294),P=e(509),m=e(91146),h=function(D,O){return s.createElement(m.Z,(0,E.Z)((0,E.Z)({},D),{},{ref:O,icon:P.Z}))},u=s.forwardRef(h);c.Z=u},84702:function(y,c,e){e.r(c);var E=e(15009),s=e.n(E),P=e(99289),m=e.n(P),h=e(5574),u=e.n(h),A=e(90930),D=e(25335),O=e(35312),i=e(8232),o=e(55102),Z=e(42075),M=e(14726),L=e(71230),I=e(10397),W=e(55241),g=e(17788),p=e(67294),x=e(48357),F=e(40110),n=e(85893),S=function(){var b=(0,p.useState)(!1),U=u()(b,2),V=U[0],v=U[1],$=i.Z.useForm(),z=u()($,1),f=z[0],G=(0,p.useState)([]),T=u()(G,2),N=T[0],J=T[1],X=(0,O.useModel)("@@initialState"),j=X.initialState,d=j==null?void 0:j.currentUser,H=d&&d.role&&d.role<2,Q=function(r){f.setFieldsValue(r),v(!0)},B=[{title:"\u6E38\u620F",dataIndex:"name",filterDropdown:function(r){var a=r.setSelectedKeys,l=r.selectedKeys,t=r.confirm,ne=r.clearFilters;return(0,n.jsxs)("div",{style:{padding:8},children:[(0,n.jsx)(o.Z,{placeholder:"\u641C\u7D22\u8D26\u53F7",value:l[0],onChange:function(R){return a(R.target.value?[R.target.value]:[])},onPressEnter:function(){return t()},style:{marginBottom:8,display:"block"}}),(0,n.jsxs)(Z.Z,{children:[(0,n.jsx)(M.ZP,{onClick:function(){return t()},type:"primary",children:"\u641C\u7D22"}),(0,n.jsx)(M.ZP,{onClick:function(){return ne()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(r,a){var l;return a==null||(l=a.name)===null||l===void 0?void 0:l.includes(r)},filterIcon:function(r){return(0,n.jsx)(F.Z,{style:{color:r?"#1890ff":void 0},onPointerEnterCapture:void 0,onPointerLeaveCapture:void 0})}},{title:"\u4E0B\u8F7D\u5730\u5740",dataIndex:"url",renderText:function(r){return r&&(0,n.jsxs)(L.Z,{align:"middle",children:[(0,n.jsx)(I.Z,{size:80,value:r||"",bordered:!1}),(0,n.jsx)(W.Z,{overlayInnerStyle:{padding:0},content:(0,n.jsx)(I.Z,{size:300,value:r||"",bordered:!1}),children:(0,n.jsx)("a",{children:"\u67E5\u770B\u5927\u56FE"})})]})}}],Y=[].concat(B,[{title:"secret",dataIndex:"secret",ellipsis:!0,copyable:!0},{title:"\u64CD\u4F5C",width:80,renderText:function(r){return(0,n.jsx)("a",{onClick:function(){return Q(r)},children:"\u7F16\u8F91"},"edit")}}]),k=function(){f.submit()},w=function(){v(!1)},K=function(){var _=m()(s()().mark(function r(){var a;return s()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,x.ln)();case 2:a=t.sent,a.data&&J(a.data);case 4:case"end":return t.stop()}},r)}));return function(){return _.apply(this,arguments)}}();(0,p.useEffect)(function(){K()},[]);var q=function(){f.resetFields(),v(!0)},ee=function(){var _=m()(s()().mark(function r(a){return s()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,(0,x.XJ)(a);case 3:t.next=8;break;case 5:return t.prev=5,t.t0=t.catch(0),t.abrupt("return");case 8:v(!1),K();case 10:case"end":return t.stop()}},r,null,[[0,5]])}));return function(a){return _.apply(this,arguments)}}();return(0,n.jsxs)(A._z,{children:[d&&d.role&&d.role<2&&(0,n.jsx)(M.ZP,{style:{marginBottom:"20px"},onClick:q,children:"\u65B0\u5EFA\u5E94\u7528"}),(0,n.jsx)(D.Z,{search:!1,columns:H?Y:B,dataSource:N}),(0,n.jsx)(g.Z,{title:"\u7F16\u8F91",visible:V,onOk:k,onCancel:w,children:(0,n.jsxs)(i.Z,{form:f,onFinish:ee,children:[(0,n.jsx)(i.Z.Item,{name:"id",style:{display:"none"},children:(0,n.jsx)(o.Z,{type:"hidden"})}),(0,n.jsx)(i.Z.Item,{name:"code",style:{display:"none"},children:(0,n.jsx)(o.Z,{type:"hidden"})}),(0,n.jsx)(i.Z.Item,{label:"\u5E94\u7528\u540D",name:"name",children:(0,n.jsx)(o.Z,{})}),(0,n.jsx)(i.Z.Item,{label:"\u4E0B\u8F7D\u5730\u5740",name:"url",children:(0,n.jsx)(o.Z,{})})]})})]})};c.default=S}}]);

1
dist/p__AppManagement.50f52b64.async.js

@ -1 +0,0 @@
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[39],{40110:function(y,o,e){var c=e(1413),s=e(67294),O=e(509),m=e(91146),E=function(D,P){return s.createElement(m.Z,(0,c.Z)((0,c.Z)({},D),{},{ref:P,icon:O.Z}))};E.displayName="SearchOutlined",o.Z=s.forwardRef(E)},84702:function(y,o,e){e.r(o);var c=e(15009),s=e.n(c),O=e(99289),m=e.n(O),E=e(5574),v=e.n(E),D=e(90930),P=e(85601),R=e(35312),i=e(8232),u=e(96365),Z=e(42075),p=e(14726),L=e(71230),A=e(10397),W=e(55241),g=e(17788),M=e(67294),I=e(48357),F=e(40110),n=e(85893),S=function(){var b=(0,M.useState)(!1),x=v()(b,2),$=x[0],f=x[1],z=i.Z.useForm(),N=v()(z,1),h=N[0],G=(0,M.useState)([]),U=v()(G,2),V=U[0],J=U[1],X=(0,R.useModel)("@@initialState"),j=X.initialState,d=j==null?void 0:j.currentUser,H=d&&d.role&&d.role<2,Q=function(r){h.setFieldsValue(r),f(!0)},T=[{title:"\u6E38\u620F",dataIndex:"name",filterDropdown:function(r){var a=r.setSelectedKeys,l=r.selectedKeys,t=r.confirm,ne=r.clearFilters;return(0,n.jsxs)("div",{style:{padding:8},children:[(0,n.jsx)(u.Z,{placeholder:"\u641C\u7D22\u8D26\u53F7",value:l[0],onChange:function(K){return a(K.target.value?[K.target.value]:[])},onPressEnter:function(){return t()},style:{marginBottom:8,display:"block"}}),(0,n.jsxs)(Z.Z,{children:[(0,n.jsx)(p.ZP,{onClick:function(){return t()},type:"primary",children:"\u641C\u7D22"}),(0,n.jsx)(p.ZP,{onClick:function(){return ne()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(r,a){var l;return a==null||(l=a.name)===null||l===void 0?void 0:l.includes(r)},filterIcon:function(r){return(0,n.jsx)(F.Z,{style:{color:r?"#1890ff":void 0},onPointerEnterCapture:void 0,onPointerLeaveCapture:void 0})}},{title:"\u4E0B\u8F7D\u5730\u5740",dataIndex:"url",renderText:function(r){return r&&(0,n.jsxs)(L.Z,{align:"middle",children:[(0,n.jsx)(A.Z,{size:80,value:r||"",bordered:!1}),(0,n.jsx)(W.Z,{overlayInnerStyle:{padding:0},content:(0,n.jsx)(A.Z,{size:300,value:r||"",bordered:!1}),children:(0,n.jsx)("a",{children:"\u67E5\u770B\u5927\u56FE"})})]})}}],Y=[].concat(T,[{title:"secret",dataIndex:"secret",ellipsis:!0,copyable:!0},{title:"\u64CD\u4F5C",width:80,renderText:function(r){return(0,n.jsx)("a",{onClick:function(){return Q(r)},children:"\u7F16\u8F91"},"edit")}}]),k=function(){h.submit()},w=function(){f(!1)},B=function(){var _=m()(s()().mark(function r(){var a;return s()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,I.ln)();case 2:a=t.sent,a.data&&J(a.data);case 4:case"end":return t.stop()}},r)}));return function(){return _.apply(this,arguments)}}();(0,M.useEffect)(function(){B()},[]);var q=function(){h.resetFields(),f(!0)},ee=function(){var _=m()(s()().mark(function r(a){return s()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,(0,I.XJ)(a);case 3:t.next=8;break;case 5:return t.prev=5,t.t0=t.catch(0),t.abrupt("return");case 8:f(!1),B();case 10:case"end":return t.stop()}},r,null,[[0,5]])}));return function(a){return _.apply(this,arguments)}}();return(0,n.jsxs)(D._z,{children:[d&&d.role&&d.role<2&&(0,n.jsx)(p.ZP,{style:{marginBottom:"20px"},onClick:q,children:"\u65B0\u5EFA\u5E94\u7528"}),(0,n.jsx)(P.Z,{search:!1,columns:H?Y:T,dataSource:V}),(0,n.jsx)(g.Z,{title:"\u7F16\u8F91",visible:$,onOk:k,onCancel:w,children:(0,n.jsxs)(i.Z,{form:h,onFinish:ee,children:[(0,n.jsx)(i.Z.Item,{name:"id",style:{display:"none"},children:(0,n.jsx)(u.Z,{type:"hidden"})}),(0,n.jsx)(i.Z.Item,{name:"code",style:{display:"none"},children:(0,n.jsx)(u.Z,{type:"hidden"})}),(0,n.jsx)(i.Z.Item,{label:"\u5E94\u7528\u540D",name:"name",children:(0,n.jsx)(u.Z,{})}),(0,n.jsx)(i.Z.Item,{label:"\u4E0B\u8F7D\u5730\u5740",name:"url",children:(0,n.jsx)(u.Z,{})})]})})]})};o.default=S}}]);

10
dist/p__Bind.a80b7711.async.js

File diff suppressed because one or more lines are too long

10
dist/p__Bind.bfb7c4f6.async.js

File diff suppressed because one or more lines are too long

1
dist/p__DeviceOverview.80620b07.async.js

File diff suppressed because one or more lines are too long

1
dist/p__DeviceOverview.cc8f1771.async.js

File diff suppressed because one or more lines are too long

2
dist/p__DeviceOwnerApp.0d084f1d.async.js → dist/p__DeviceOwnerApp.ede954ff.async.js

File diff suppressed because one or more lines are too long

1
dist/p__Overview.f1f0c4a9.async.js

@ -0,0 +1 @@
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[628],{58451:function(_e,p,_){_.r(p);var U=_(97857),A=_.n(U),C=_(15009),r=_.n(C),T=_(99289),E=_.n(T),R=_(5574),u=_.n(R),f=_(48357),I=_(92713),x=_(90930),m=_(39615),B=_(57470),v=_(64317),W=_(34540),g=_(27484),K=_.n(g),L=_(9220),i=_(67294),y=_(96974),a=_(85893),S=function(){var F=(0,i.useState)(),D=u()(F,2),o=D[0],Z=D[1],V=(0,i.useState)([]),P=u()(V,2),O=P[0],z=P[1],G=(0,i.useState)([]),h=u()(G,2),$=h[0],H=h[1],J=(0,i.useState)(!1),M=u()(J,2),N=M[0],Q=M[1],X=(0,y.UO)(),j=X.code,Y=function(){var t=E()(r()().mark(function e(){var n;return r()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,f.d1)({appCode:j});case 2:n=s.sent,n.data&&Z(n.data);case 4:case"end":return s.stop()}},e)}));return function(){return t.apply(this,arguments)}}(),w=function(){var t=E()(r()().mark(function e(){var n;return r()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,f.ln)();case 2:n=s.sent,n.data&&H(n.data);case 4:case"end":return s.stop()}},e)}));return function(){return t.apply(this,arguments)}}(),b=function(){var t=E()(r()().mark(function e(n){var l;return r()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,(0,f.Zb)(n);case 2:l=d.sent,l.data&&z(l.data);case 4:case"end":return d.stop()}},e)}));return function(n){return t.apply(this,arguments)}}();(0,i.useEffect)(function(){Y(),w(),b({code:j})},[]);var c=function(e){return e?parseFloat((e/1e5).toFixed(2)):0},k=function(e){var n=e+"";return n.slice(4,6)+"/"+n.slice(6,8)},q=O.map(function(t){return{date:k(t.date),income:c(t.income)}}),ee={data:q,xField:"date",yField:"income",tooltip:{name:"\u6536\u5165",field:"income"},axis:{date:{title:"\u65E5\u671F"},income:{title:"\u6536\u5165\uFF08\u5143\uFF09"}},title:"\u533A\u95F4\u7D2F\u8BA1"+c(O.reduce(function(t,e){return t+(e.income?e.income:0)},0))+"\u5143",height:400,label:{text:function(e){return e.income>0?e.income:""},textBaseline:"bottom",visible:!0,type:"point"},line:{style:{stroke:"#eb0fcc",strokeWidth:2},shapeField:"smooth"},shapeField:"smooth",style:{fill:"linear-gradient(-90deg, white 0%, #eb0fcc 100%)"}};return(0,a.jsxs)(x._z,{children:[(0,a.jsx)(L.Z,{onResize:function(e){Q(e.width<596)},children:(0,a.jsx)(m.Z,{children:(0,a.jsxs)(m.Z.Group,{direction:N?"column":"row",children:[(0,a.jsx)(m.Z,{statistic:{title:"\u7D2F\u8BA1\u6536\u5165\uFF08\u5143\uFF09",value:c(o==null?void 0:o.totalIncome)}}),(0,a.jsx)(m.Z,{statistic:{title:"\u6628\u65E5\u6536\u5165\uFF08\u5143\uFF09",value:c(o==null?void 0:o.yesterdayIncome)}})]})})},"resize-observer"),(0,a.jsxs)("div",{style:{marginTop:"20px",padding:"40px",backgroundColor:"white"},children:[(0,a.jsxs)(B.t,{defaultCollapsed:!0,split:!0,onFinish:b,children:[(0,a.jsx)(v.Z,{name:"code",label:"\u5E94\u7528",options:$.map(function(t){return{label:t.name,value:t.code}})}),(0,a.jsx)(v.Z,{label:"\u5E73\u53F0",name:"platform",valueEnum:{1:"\u7A7F\u5C71\u7532",2:"\u817E\u8BAF",5:"\u5FEB\u624B",7:"Sigmob"}}),(0,a.jsx)(v.Z,{name:"advType",label:"\u5E7F\u544A\u7C7B\u578B",valueEnum:{1:"\u6A2A\u5E45",2:"\u63D2\u9875",3:"\u6FC0\u52B1\u89C6\u9891"}}),(0,a.jsx)(W.Z,{fieldProps:{disabledDate:function(e){return e&&e>=K()().startOf("day")}},name:"date",label:"\u65F6\u95F4"})]}),(0,a.jsx)(I.Z,A()({},ee))]})]})};p.default=S}}]);

1
dist/p__Overview.f23404e9.async.js

@ -1 +0,0 @@
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[628],{58451:function(_e,p,_){_.r(p);var U=_(97857),A=_.n(U),C=_(15009),r=_.n(C),T=_(99289),E=_.n(T),R=_(5574),d=_.n(R),f=_(48357),I=_(4025),x=_(90930),m=_(31847),B=_(57470),v=_(64317),W=_(34540),g=_(27484),K=_.n(g),L=_(9220),o=_(67294),y=_(96974),a=_(85893),S=function(){var F=(0,o.useState)(),D=d()(F,2),i=D[0],Z=D[1],z=(0,o.useState)([]),O=d()(z,2),h=O[0],G=O[1],$=(0,o.useState)([]),P=d()($,2),H=P[0],J=P[1],N=(0,o.useState)(!1),M=d()(N,2),Q=M[0],V=M[1],X=(0,y.UO)(),j=X.code,Y=function(){var t=E()(r()().mark(function e(){var n;return r()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,f.d1)({appCode:j});case 2:n=s.sent,n.data&&Z(n.data);case 4:case"end":return s.stop()}},e)}));return function(){return t.apply(this,arguments)}}(),w=function(){var t=E()(r()().mark(function e(){var n;return r()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,f.ln)();case 2:n=s.sent,n.data&&J(n.data);case 4:case"end":return s.stop()}},e)}));return function(){return t.apply(this,arguments)}}(),b=function(){var t=E()(r()().mark(function e(n){var l;return r()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,(0,f.Zb)(n);case 2:l=u.sent,l.data&&G(l.data);case 4:case"end":return u.stop()}},e)}));return function(n){return t.apply(this,arguments)}}();(0,o.useEffect)(function(){Y(),w(),b({code:j})},[]);var c=function(e){return e?parseFloat((e/1e5).toFixed(2)):0},k=function(e){var n=e+"";return n.slice(4,6)+"/"+n.slice(6,8)},q=h.map(function(t){return{date:k(t.date),income:c(t.income)}}),ee={data:q,xField:"date",yField:"income",tooltip:{name:"\u6536\u5165",field:"income"},axis:{date:{title:"\u65E5\u671F"},income:{title:"\u6536\u5165\uFF08\u5143\uFF09"}},title:"\u533A\u95F4\u7D2F\u8BA1"+c(h.reduce(function(t,e){return t+(e.income?e.income:0)},0))+"\u5143",height:400,label:{text:function(e){return e.income>0?e.income:""},textBaseline:"bottom",visible:!0,type:"point"},line:{style:{stroke:"#eb0fcc",strokeWidth:2},shapeField:"smooth"},shapeField:"smooth",style:{fill:"linear-gradient(-90deg, white 0%, #eb0fcc 100%)"}};return(0,a.jsxs)(x._z,{children:[(0,a.jsx)(L.Z,{onResize:function(e){V(e.width<596)},children:(0,a.jsx)(m.Z,{children:(0,a.jsxs)(m.Z.Group,{direction:Q?"column":"row",children:[(0,a.jsx)(m.Z,{statistic:{title:"\u7D2F\u8BA1\u6536\u5165\uFF08\u5143\uFF09",value:c(i==null?void 0:i.totalIncome)}}),(0,a.jsx)(m.Z,{statistic:{title:"\u6628\u65E5\u6536\u5165\uFF08\u5143\uFF09",value:c(i==null?void 0:i.yesterdayIncome)}})]})})},"resize-observer"),(0,a.jsxs)("div",{style:{marginTop:"20px",padding:"40px",backgroundColor:"white"},children:[(0,a.jsxs)(B.t,{defaultCollapsed:!0,split:!0,onFinish:b,children:[(0,a.jsx)(v.Z,{name:"code",label:"\u5E94\u7528",options:H.map(function(t){return{label:t.name,value:t.code}})}),(0,a.jsx)(v.Z,{label:"\u5E73\u53F0",name:"platform",valueEnum:{1:"\u7A7F\u5C71\u7532",2:"\u817E\u8BAF",5:"\u5FEB\u624B",7:"Sigmob"}}),(0,a.jsx)(v.Z,{name:"advType",label:"\u5E7F\u544A\u7C7B\u578B",valueEnum:{1:"\u6A2A\u5E45",2:"\u63D2\u9875",3:"\u6FC0\u52B1\u89C6\u9891"}}),(0,a.jsx)(W.Z,{fieldProps:{disabledDate:function(e){return e&&e>=K()().startOf("day")}},name:"date",label:"\u65F6\u95F4"})]}),(0,a.jsx)(I.Z,A()({},ee))]})]})};p.default=S}}]);

1
dist/p__User__Login__index.0020071b.async.js

File diff suppressed because one or more lines are too long

1
dist/p__User__Login__index.79522455.async.js

File diff suppressed because one or more lines are too long

1
dist/p__Welcome.70b2426d.async.js

File diff suppressed because one or more lines are too long

1
dist/p__Welcome.8c10044c.async.js

File diff suppressed because one or more lines are too long

2
dist/t__plugin-layout__Layout.9c68ad01.async.js → dist/t__plugin-layout__Layout.bb80f58e.async.js

File diff suppressed because one or more lines are too long

426
dist/umi.7e880ffe.js

File diff suppressed because one or more lines are too long

433
dist/umi.f2ee2082.js

File diff suppressed because one or more lines are too long

68
src/pages/Admin/AdminHideForm.tsx

@ -0,0 +1,68 @@
import { Modal, Switch, Table } from 'antd';
import { ColumnsType } from 'antd/es/table';
import React from 'react';
import { changeAdminHide } from '../../services/matrix/admin';
export type AdminHideFormProps = {
onSubmit: () => void;
data: API.MatrixAdminBo[];
};
const AdminHideForm: React.FC<AdminHideFormProps> = (props) => {
const handleOk = () => {
props.onSubmit();
};
const columns: ColumnsType<API.MatrixAdminBo> = [
{
title: '账号',
dataIndex: 'name',
ellipsis: true,
},
{
title: '角色',
dataIndex: 'role',
render: (r: number) => {
let roleText = '';
switch (r) {
case 1:
roleText = '超级管理员';
break;
case 2:
roleText = '管理员';
break;
case 3:
roleText = '游戏主';
break;
case 4:
roleText = '设备主';
break;
default:
roleText = '';
}
return roleText;
},
},
{
title: '隐藏',
render: (record: API.MatrixAdminBo) => (
<Switch
defaultValue={record.hide !== 0}
onClick={(val) => {
if (record.id) {
changeAdminHide({ adminId: record.id, hide: val ? 1 : 0 });
}
}}
/>
),
},
];
return (
<Modal title="批量编辑" visible footer={[]} onCancel={handleOk}>
<Table columns={columns} dataSource={props.data} />
</Modal>
);
};
export default AdminHideForm;

55
src/pages/AdminManagement.tsx

@ -16,13 +16,15 @@ import {
import { ColumnsType } from 'antd/es/table'; import { ColumnsType } from 'antd/es/table';
import { useEffect, useState } from 'react'; import { useEffect, useState } from 'react';
import { adminList, appList, saveAdmin } from '@/services/matrix/admin';
import { SearchOutlined } from '@ant-design/icons'; import { SearchOutlined } from '@ant-design/icons';
import TabPane from 'antd/es/tabs/TabPane'; import TabPane from 'antd/es/tabs/TabPane';
import { adminList, appList, saveAdmin } from '../services/matrix/admin';
import AdminHideForm from './Admin/AdminHideForm';
const AdminManagement = () => { const AdminManagement = () => {
const [data, setData] = useState<API.MatrixAdminBo[]>([]); const [data, setData] = useState<API.MatrixAdminBo[]>([]);
const [visible, setVisible] = useState(false); const [visible, setVisible] = useState(false);
const [hideFormVisible, setHideFormVisible] = useState(false);
const [editing, setEditing] = useState(false); const [editing, setEditing] = useState(false);
const [role, setRole] = useState<number>(0); const [role, setRole] = useState<number>(0);
const [form] = Form.useForm(); const [form] = Form.useForm();
@ -67,18 +69,18 @@ const AdminManagement = () => {
<Button onClick={() => confirm()} type="primary"> <Button onClick={() => confirm()} type="primary">
</Button> </Button>
<Button onClick={() => clearFilters()} type="link"> <Button onClick={clearFilters} type="link">
</Button> </Button>
</Space> </Space>
</div> </div>
), ),
onFilter: (value, record) => record?.name?.includes(value), onFilter: (value, record) => (record?.name && record.name.includes(String(value))) || false,
filterIcon: (filtered) => ( filterIcon: (filtered) => (
<SearchOutlined <SearchOutlined
style={{ color: filtered ? '#1890ff' : undefined }} style={{ color: filtered ? '#1890ff' : undefined }}
onPointerEnterCapture={undefined} onPointerOverCapture={undefined}
onPointerLeaveCapture={undefined} onPointerMoveCapture={undefined}
/> />
), ),
}, },
@ -148,19 +150,15 @@ const AdminManagement = () => {
<Button onClick={() => confirm()} type="primary"> <Button onClick={() => confirm()} type="primary">
</Button> </Button>
<Button onClick={() => clearFilters()} type="link"> <Button onClick={clearFilters} type="link">
</Button> </Button>
</Space> </Space>
</div> </div>
), ),
onFilter: (value, record) => record?.name?.includes(value), onFilter: (value, record) => (record?.name && record.name.includes(String(value))) || false,
filterIcon: (filtered) => ( filterIcon: (filtered) => (
<SearchOutlined <SearchOutlined style={{ color: filtered ? '#1890ff' : undefined }} />
style={{ color: filtered ? '#1890ff' : undefined }}
onPointerEnterCapture={undefined}
onPointerLeaveCapture={undefined}
/>
), ),
}, },
@ -282,15 +280,34 @@ const AdminManagement = () => {
return ( return (
<div> <div>
<Row align="stretch" gutter={20}>
<Col>
<Button onClick={handleNew}></Button> <Button onClick={handleNew}></Button>
</Col>
<Col>
<Button
onClick={() => {
setHideFormVisible(true);
}}
>
</Button>
</Col>
</Row>
<Tabs centered style={{ backgroundColor: 'white', padding: '20px' }}> <Tabs centered style={{ backgroundColor: 'white', padding: '20px' }}>
{currentUser?.role && currentUser.role < 3 && ( {currentUser?.role && currentUser.role < 3 && (
<TabPane tab="普通账号" key="1"> <TabPane tab="普通账号" key="1">
<Table columns={columns} dataSource={data.filter((x) => x.role === 3)} /> <Table
columns={columns}
dataSource={data.filter((x) => x.role === 3 && x.hide === 0)}
/>
</TabPane> </TabPane>
)} )}
<TabPane tab="口子" key="2"> <TabPane tab="口子" key="2">
<Table columns={deviceColumns} dataSource={data.filter((x) => x.role === 4)} /> <Table
columns={deviceColumns}
dataSource={data.filter((x) => x.role === 4 && x.hide === 0)}
/>
</TabPane> </TabPane>
</Tabs> </Tabs>
@ -341,6 +358,16 @@ const AdminManagement = () => {
)} )}
</Form> </Form>
</Modal> </Modal>
{hideFormVisible && (
<AdminHideForm
data={data}
onSubmit={() => {
setHideFormVisible(false);
fetchData();
}}
/>
)}
</div> </div>
); );
}; };

46
src/services/matrix/admin.ts

@ -15,9 +15,9 @@ export async function addSchedule(body: API.AddMockScheduleReq, options?: { [key
} }
/** 此处后端没有提供注释 POST /api/admin/addWhiteList */ /** 此处后端没有提供注释 POST /api/admin/addWhiteList */
export async function addWhiteList1( export async function addWhiteList(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象) // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.addWhiteList1Params, params: API.addWhiteListParams,
options?: { [key: string]: any }, options?: { [key: string]: any },
) { ) {
return request<API.RVoid>('/api/admin/addWhiteList', { return request<API.RVoid>('/api/admin/addWhiteList', {
@ -51,12 +51,27 @@ export async function advList(body: API.AdvRecordQuery, options?: { [key: string
/** 此处后端没有提供注释 GET /api/admin/appList */ /** 此处后端没有提供注释 GET /api/admin/appList */
export async function appList(options?: { [key: string]: any }) { export async function appList(options?: { [key: string]: any }) {
return request<API.RListMatrixApp>('/api/admin/appList', { return request<API.RListMatrixAppBo>('/api/admin/appList', {
method: 'GET', method: 'GET',
...(options || {}), ...(options || {}),
}); });
} }
/** 此处后端没有提供注释 POST /api/admin/changeAdminHide */
export async function changeAdminHide(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.changeAdminHideParams,
options?: { [key: string]: any },
) {
return request<API.RVoid>('/api/admin/changeAdminHide', {
method: 'POST',
params: {
...params,
},
...(options || {}),
});
}
/** 此处后端没有提供注释 GET /api/admin/current */ /** 此处后端没有提供注释 GET /api/admin/current */
export async function current(options?: { [key: string]: any }) { export async function current(options?: { [key: string]: any }) {
return request<API.RMatrixAdmin>('/api/admin/current', { return request<API.RMatrixAdmin>('/api/admin/current', {
@ -80,6 +95,14 @@ export async function deleteWhiteList(
}); });
} }
/** 此处后端没有提供注释 GET /api/admin/getSTS */
export async function getSts(options?: { [key: string]: any }) {
return request<API.RSTSInfo>('/api/admin/getSTS', {
method: 'GET',
...(options || {}),
});
}
/** 此处后端没有提供注释 POST /api/admin/grantApp */ /** 此处后端没有提供注释 POST /api/admin/grantApp */
export async function grantApp( export async function grantApp(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象) // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
@ -137,6 +160,21 @@ export async function adminLogin(
}); });
} }
/** 此处后端没有提供注释 GET /api/admin/mock */
export async function mock(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.mockParams,
options?: { [key: string]: any },
) {
return request<API.RVoid>('/api/admin/mock', {
method: 'GET',
params: {
...params,
},
...(options || {}),
});
}
/** 此处后端没有提供注释 POST /api/admin/saveAdmin */ /** 此处后端没有提供注释 POST /api/admin/saveAdmin */
export async function saveAdmin(body: API.MatrixAdminBo, options?: { [key: string]: any }) { export async function saveAdmin(body: API.MatrixAdminBo, options?: { [key: string]: any }) {
return request<API.RVoid>('/api/admin/saveAdmin', { return request<API.RVoid>('/api/admin/saveAdmin', {
@ -170,7 +208,7 @@ export async function scheduleList(options?: { [key: string]: any }) {
} }
/** 此处后端没有提供注释 GET /api/admin/whiteList */ /** 此处后端没有提供注释 GET /api/admin/whiteList */
export async function whiteList1(options?: { [key: string]: any }) { export async function whiteList(options?: { [key: string]: any }) {
return request<API.RListMatrixWhiteDevice>('/api/admin/whiteList', { return request<API.RListMatrixWhiteDevice>('/api/admin/whiteList', {
method: 'GET', method: 'GET',
...(options || {}), ...(options || {}),

18
src/services/matrix/appController.ts

@ -1,18 +0,0 @@
// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';
/** 此处后端没有提供注释 GET /api/game/app/info */
export async function getAppInfo(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.getAppInfoParams,
options?: { [key: string]: any },
) {
return request<API.RAppInfo>('/api/game/app/info', {
method: 'GET',
params: {
...params,
},
...(options || {}),
});
}

12
src/services/matrix/index.ts

@ -3,14 +3,14 @@
// API 更新时间: // API 更新时间:
// API 唯一标识: // API 唯一标识:
import * as admin from './admin'; import * as admin from './admin';
import * as appController from './appController';
import * as device from './device'; import * as device from './device';
import * as loginController from './loginController'; import * as matrixAppConfigController from './matrixAppConfigController';
import * as matrixController from './matrixController'; import * as matrixMoneyController from './matrixMoneyController';
import * as matrixUserController from './matrixUserController';
export default { export default {
matrixController, matrixUserController,
loginController,
admin, admin,
matrixMoneyController,
device, device,
appController, matrixAppConfigController,
}; };

114
src/services/matrix/loginController.ts

@ -1,114 +0,0 @@
// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';
/** 此处后端没有提供注释 GET /api/game/auth/current */
export async function currentUser(options?: { [key: string]: any }) {
return request<API.RCurrentUser>('/api/game/auth/current', {
method: 'GET',
...(options || {}),
});
}
/** 此处后端没有提供注释 POST /api/game/auth/login */
export async function wxLogin(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.wxLoginParams,
options?: { [key: string]: any },
) {
return request<API.RString>('/api/game/auth/login', {
method: 'POST',
params: {
...params,
},
...(options || {}),
});
}
/** 此处后端没有提供注释 POST /api/game/auth/loginV2 */
export async function wxLoginV2(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.wxLoginV2Params,
options?: { [key: string]: any },
) {
return request<API.RLoginBo>('/api/game/auth/loginV2', {
method: 'POST',
params: {
...params,
},
...(options || {}),
});
}
/** 此处后端没有提供注释 POST /api/game/auth/loginV3 */
export async function loginV3(body: API.LoginReq, options?: { [key: string]: any }) {
return request<API.RLoginBo>('/api/game/auth/loginV3', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
});
}
/** 此处后端没有提供注释 GET /api/game/auth/myInviteRecord */
export async function myInviteRecord(options?: { [key: string]: any }) {
return request<API.RInviteInfo>('/api/game/auth/myInviteRecord', {
method: 'GET',
...(options || {}),
});
}
/** 此处后端没有提供注释 GET /api/game/auth/rankList */
export async function rankList(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.rankListParams,
options?: { [key: string]: any },
) {
return request<API.RRankList>('/api/game/auth/rankList', {
method: 'GET',
params: {
...params,
},
...(options || {}),
});
}
/** 此处后端没有提供注释 GET /api/game/auth/test */
export async function setInviteCode(options?: { [key: string]: any }) {
return request<API.RVoid>('/api/game/auth/test', {
method: 'GET',
...(options || {}),
});
}
/** 此处后端没有提供注释 POST /api/game/auth/updateScore */
export async function updateScore(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.updateScoreParams,
options?: { [key: string]: any },
) {
return request<API.RVoid>('/api/game/auth/updateScore', {
method: 'POST',
params: {
...params,
},
...(options || {}),
});
}
/** 此处后端没有提供注释 POST /api/game/auth/updateUserInfo */
export async function updateUserInfo(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.updateUserInfoParams,
options?: { [key: string]: any },
) {
return request<API.RVoid>('/api/game/auth/updateUserInfo', {
method: 'POST',
params: {
...params,
},
...(options || {}),
});
}

170
src/services/matrix/matrixAppConfigController.ts

@ -0,0 +1,170 @@
// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';
/** 此处后端没有提供注释 GET /api/admin/app/aliPayConfig */
export async function getAliPayConfig(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.getAliPayConfigParams,
options?: { [key: string]: any },
) {
return request<API.RAliPayConfigBo>('/api/admin/app/aliPayConfig', {
method: 'GET',
params: {
...params,
},
...(options || {}),
});
}
/** 此处后端没有提供注释 POST /api/admin/app/aliPayConfig */
export async function saveAliPayConfig(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.saveAliPayConfigParams,
body: API.AliPayConfigBo,
options?: { [key: string]: any },
) {
return request<API.RVoid>('/api/admin/app/aliPayConfig', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
params: {
...params,
},
data: body,
...(options || {}),
});
}
/** 此处后端没有提供注释 GET /api/admin/app/basicConfig */
export async function getBasicConfig(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.getBasicConfigParams,
options?: { [key: string]: any },
) {
return request<API.RAppBasicConfig>('/api/admin/app/basicConfig', {
method: 'GET',
params: {
...params,
},
...(options || {}),
});
}
/** 此处后端没有提供注释 POST /api/admin/app/basicConfig */
export async function saveBasicConfig(body: API.AppBasicConfig, options?: { [key: string]: any }) {
return request<API.RVoid>('/api/admin/app/basicConfig', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
});
}
/** 此处后端没有提供注释 GET /api/admin/app/normalConfig */
export async function getAppNormalConfig(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.getAppNormalConfigParams,
options?: { [key: string]: any },
) {
return request<API.RAppNormalConfig>('/api/admin/app/normalConfig', {
method: 'GET',
params: {
...params,
},
...(options || {}),
});
}
/** 此处后端没有提供注释 POST /api/admin/app/normalConfig */
export async function saveNormalConfig(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.saveNormalConfigParams,
body: API.AppNormalConfig,
options?: { [key: string]: any },
) {
return request<API.RVoid>('/api/admin/app/normalConfig', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
params: {
...params,
},
data: body,
...(options || {}),
});
}
/** 此处后端没有提供注释 GET /api/admin/app/uMengConfig */
export async function getUMengConfig(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.getUMengConfigParams,
options?: { [key: string]: any },
) {
return request<API.RUmengConfigBo>('/api/admin/app/uMengConfig', {
method: 'GET',
params: {
...params,
},
...(options || {}),
});
}
/** 此处后端没有提供注释 POST /api/admin/app/uMengConfig */
export async function saveUMengConfig(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.saveUMengConfigParams,
body: API.UmengConfigBo,
options?: { [key: string]: any },
) {
return request<API.RVoid>('/api/admin/app/uMengConfig', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
params: {
...params,
},
data: body,
...(options || {}),
});
}
/** 此处后端没有提供注释 GET /api/admin/app/wxConfig */
export async function getWxConfig(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.getWxConfigParams,
options?: { [key: string]: any },
) {
return request<API.RWxConfig>('/api/admin/app/wxConfig', {
method: 'GET',
params: {
...params,
},
...(options || {}),
});
}
/** 此处后端没有提供注释 POST /api/admin/app/wxConfig */
export async function saveWxConfig(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.saveWxConfigParams,
body: API.WxConfig,
options?: { [key: string]: any },
) {
return request<API.RVoid>('/api/admin/app/wxConfig', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
params: {
...params,
},
data: body,
...(options || {}),
});
}

93
src/services/matrix/matrixController.ts

@ -1,93 +0,0 @@
// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';
/** 此处后端没有提供注释 POST /api/game/matrix/addWhiteList */
export async function addWhiteList(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.addWhiteListParams,
options?: { [key: string]: any },
) {
return request<API.RVoid>('/api/game/matrix/addWhiteList', {
method: 'POST',
params: {
...params,
},
...(options || {}),
});
}
/** 此处后端没有提供注释 POST /api/game/matrix/bindDevice */
export async function bindDevice(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.bindDeviceParams,
options?: { [key: string]: any },
) {
return request<API.RString>('/api/game/matrix/bindDevice', {
method: 'POST',
params: {
...params,
},
...(options || {}),
});
}
/** 此处后端没有提供注释 GET /api/game/matrix/getAdvList */
export async function getAdvList(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.getAdvListParams,
options?: { [key: string]: any },
) {
return request<API.RListMatrixAdvRecordSimple>('/api/game/matrix/getAdvList', {
method: 'GET',
params: {
...params,
},
...(options || {}),
});
}
/** 此处后端没有提供注释 POST /api/game/matrix/saveAdvRecord */
export async function saveAdvRecord(
body: API.MatrixAdvRecordEditBo,
options?: { [key: string]: any },
) {
return request<API.RVoid>('/api/game/matrix/saveAdvRecord', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
});
}
/** 此处后端没有提供注释 POST /api/game/matrix/saveAdvRecordV2 */
export async function saveAdvRecordV2(
body: API.MatrixAdvRecordEditBo,
options?: { [key: string]: any },
) {
return request<API.RVoid>('/api/game/matrix/saveAdvRecordV2', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
});
}
/** 此处后端没有提供注释 GET /api/game/matrix/whiteList */
export async function whiteList(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.whiteListParams,
options?: { [key: string]: any },
) {
return request<API.RBoolean>('/api/game/matrix/whiteList', {
method: 'GET',
params: {
...params,
},
...(options || {}),
});
}

27
src/services/matrix/matrixMoneyController.ts

@ -0,0 +1,27 @@
// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';
/** 此处后端没有提供注释 POST /api/admin/money/audit */
export async function audit(body: API.MoneyBo, options?: { [key: string]: any }) {
return request<API.RVoid>('/api/admin/money/audit', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
});
}
/** 此处后端没有提供注释 POST /api/admin/money/list */
export async function moneyApplyList(body: API.MoneyQuery, options?: { [key: string]: any }) {
return request<API.RPageResultMoneyBo>('/api/admin/money/list', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
});
}

15
src/services/matrix/matrixUserController.ts

@ -0,0 +1,15 @@
// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';
/** 此处后端没有提供注释 POST /api/admin/user/list */
export async function list(body: API.UserQuery, options?: { [key: string]: any }) {
return request<API.RPageResultUserBo>('/api/admin/user/list', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
});
}

319
src/services/matrix/typings.d.ts

@ -1,18 +1,13 @@
declare namespace API { declare namespace API {
type AddMockScheduleReq = { type AddMockScheduleReq = {
appId?: number; appId?: number[];
incomeYuan?: number; incomeYuan?: number;
scheduleTime?: number[]; scheduleTime?: number[];
}; };
type addWhiteList1Params = {
deviceId: string;
channel: string;
};
type addWhiteListParams = { type addWhiteListParams = {
deviceId: string; deviceId: string;
appCode: string; channel: string;
}; };
type adminLoginParams = { type adminLoginParams = {
@ -31,29 +26,43 @@ declare namespace API {
adminId?: number; adminId?: number;
}; };
type AppInfo = { type AliPayConfigBo = {
aliPayPublicCert?: string;
aliPayRootCert?: string;
aliPayAppCert?: string;
aliPayPrivateKey?: string;
aliPayAppId?: string;
};
type AppBasicConfig = {
id?: number;
code?: string;
secret?: string;
name?: string; name?: string;
icon?: string; img?: string;
appId?: string; url?: string;
inAudit?: number; hide?: number;
recommend?: AppInfo[]; channel?: string;
version?: number;
}; };
type bindDeviceParams = { type AppNormalConfig = {
deviceId: string; moneyLadder?: number[];
appCode: string; noAuditMoney?: number;
adminName: string; qqUrl?: string;
dayLimit?: number;
maxIncomeEachVideo?: number;
dayRates?: DayRate[];
defaultRate?: number;
}; };
type calcParams = { type calcParams = {
date: number; date: number;
}; };
type CurrentUser = { type changeAdminHideParams = {
avatarUrl?: string; adminId: number;
nickName?: string; hide: number;
score?: number;
openId?: string;
}; };
type DateIncome = { type DateIncome = {
@ -61,6 +70,11 @@ declare namespace API {
income?: number; income?: number;
}; };
type DayRate = {
day?: number;
rate?: number;
};
type deleteWhiteListParams = { type deleteWhiteListParams = {
deviceId: string; deviceId: string;
}; };
@ -69,13 +83,24 @@ declare namespace API {
appCode: string; appCode: string;
}; };
type getAdvListParams = { type getAliPayConfigParams = {
appCode: string; appCode: string;
deviceId: string;
}; };
type getAppInfoParams = { type getAppNormalConfigParams = {
appId?: string; appCode: string;
};
type getBasicConfigParams = {
appCode: string;
};
type getUMengConfigParams = {
appCode: string;
};
type getWxConfigParams = {
appCode: string;
}; };
type grantAppParams = { type grantAppParams = {
@ -98,31 +123,6 @@ declare namespace API {
date?: string[]; date?: string[];
}; };
type InviteInfo = {
inviteCnt?: number;
list?: InviteUserInfo[];
};
type InviteUserInfo = {
avatarUrl?: string;
nickName?: string;
score?: number;
nextTime?: number;
};
type LoginBo = {
jwtToken?: string;
inviteCode?: string;
signature?: string;
};
type LoginReq = {
code?: string;
appId?: string;
inviteCode?: string;
rawData?: string;
};
type MatrixAdmin = { type MatrixAdmin = {
id?: number; id?: number;
name?: string; name?: string;
@ -133,6 +133,7 @@ declare namespace API {
parentAdminId?: number; parentAdminId?: number;
deviceCnt?: number; deviceCnt?: number;
incomeRate?: number; incomeRate?: number;
hide?: number;
}; };
type MatrixAdminBo = { type MatrixAdminBo = {
@ -140,6 +141,7 @@ declare namespace API {
name?: string; name?: string;
password?: string; password?: string;
appIds?: number[]; appIds?: number[];
hide?: number;
role?: number; role?: number;
deviceCnt?: number; deviceCnt?: number;
incomeRate?: number; incomeRate?: number;
@ -167,43 +169,48 @@ declare namespace API {
ip?: string; ip?: string;
advId?: number; advId?: number;
sign?: string; sign?: string;
timestamp?: number;
appName?: string; appName?: string;
appId?: number; appId?: number;
createdAt?: number; createdAt?: number;
id?: number; id?: number;
user?: UserBo;
adminName?: string; adminName?: string;
}; };
type MatrixAdvRecordEditBo = {
deviceId?: string;
appCode?: string;
platform?: number;
advType?: number;
ecpm?: number;
deviceBrand?: string;
deviceName?: string;
ip?: string;
advId?: number;
sign?: string;
};
type MatrixAdvRecordSimple = {
deviceId?: string;
platform?: number;
advType?: number;
ecpm?: number;
createdAt?: number;
};
type MatrixApp = { type MatrixApp = {
id?: number; id?: number;
name?: string; name?: string;
code?: string; code?: string;
img?: string;
url?: string; url?: string;
income?: number; income?: number;
channel?: string; channel?: string;
hide?: number; hide?: number;
secret?: string; secret?: string;
version?: number;
umeng?: string;
aliPay?: string;
wx?: string;
moneyLadder?: string;
noAuditMoney?: number;
qqUrl?: string;
dayLimit?: number;
maxIncomeEachVideo?: number;
dayRates?: string;
defaultRate?: number;
};
type MatrixAppBo = {
id?: number;
name?: string;
code?: string;
img?: string;
url?: string;
channel?: string;
hide?: number;
secret?: string;
enableCash?: boolean;
}; };
type MatrixMockSchedule = { type MatrixMockSchedule = {
@ -225,6 +232,32 @@ declare namespace API {
createdAt?: string; createdAt?: string;
}; };
type mockParams = {
start: number;
end: number;
};
type MoneyBo = {
user?: UserBo;
id?: number;
cent?: number;
aliPayAccount?: string;
name?: string;
reason?: string;
orderId?: string;
payFundOrderId?: string;
transDate?: string;
status?: number;
createdAt?: number;
};
type MoneyQuery = {
current?: number;
pageSize?: number;
appCode?: string;
status?: number;
};
type offlineParams = { type offlineParams = {
deviceId: string; deviceId: string;
}; };
@ -247,40 +280,34 @@ declare namespace API {
sum?: number; sum?: number;
}; };
type RankList = { type PageResultMoneyBo = {
list?: UserInfo[]; data?: MoneyBo[];
myRank?: string; total?: number;
myScore?: number; sum?: number;
myAvatarUrl?: string;
myNickName?: string;
};
type rankListParams = {
size: number;
}; };
type RAppInfo = { type PageResultUserBo = {
code?: number; data?: UserBo[];
message?: string; total?: number;
data?: AppInfo; sum?: number;
}; };
type RBoolean = { type RAliPayConfigBo = {
code?: number; code?: number;
message?: string; message?: string;
data?: boolean; data?: AliPayConfigBo;
}; };
type RCurrentUser = { type RAppBasicConfig = {
code?: number; code?: number;
message?: string; message?: string;
data?: CurrentUser; data?: AppBasicConfig;
}; };
type RInviteInfo = { type RAppNormalConfig = {
code?: number; code?: number;
message?: string; message?: string;
data?: InviteInfo; data?: AppNormalConfig;
}; };
type RListDateIncome = { type RListDateIncome = {
@ -301,16 +328,10 @@ declare namespace API {
data?: MatrixAdminDevice[]; data?: MatrixAdminDevice[];
}; };
type RListMatrixAdvRecordSimple = { type RListMatrixAppBo = {
code?: number; code?: number;
message?: string; message?: string;
data?: MatrixAdvRecordSimple[]; data?: MatrixAppBo[];
};
type RListMatrixApp = {
code?: number;
message?: string;
data?: MatrixApp[];
}; };
type RListMatrixMockSchedule = { type RListMatrixMockSchedule = {
@ -325,12 +346,6 @@ declare namespace API {
data?: MatrixWhiteDevice[]; data?: MatrixWhiteDevice[];
}; };
type RLoginBo = {
code?: number;
message?: string;
data?: LoginBo;
};
type RMatrixAdmin = { type RMatrixAdmin = {
code?: number; code?: number;
message?: string; message?: string;
@ -349,10 +364,16 @@ declare namespace API {
data?: PageResultMatrixAdvRecordBo; data?: PageResultMatrixAdvRecordBo;
}; };
type RRankList = { type RPageResultMoneyBo = {
code?: number; code?: number;
message?: string; message?: string;
data?: RankList; data?: PageResultMoneyBo;
};
type RPageResultUserBo = {
code?: number;
message?: string;
data?: PageResultUserBo;
}; };
type RString = { type RString = {
@ -361,41 +382,89 @@ declare namespace API {
data?: string; data?: string;
}; };
type RSTSInfo = {
code?: number;
message?: string;
data?: STSInfo;
};
type RUmengConfigBo = {
code?: number;
message?: string;
data?: UmengConfigBo;
};
type RVoid = { type RVoid = {
code?: number; code?: number;
message?: string; message?: string;
data?: Record<string, any>; data?: Record<string, any>;
}; };
type updateScoreParams = { type RWxConfig = {
score: number; code?: number;
message?: string;
data?: WxConfig;
}; };
type updateUserInfoParams = { type saveAliPayConfigParams = {
rawData: string; appCode: string;
signature: string;
}; };
type UserInfo = { type saveNormalConfigParams = {
avatarUrl?: string; appCode: string;
nickName?: string;
score?: number;
}; };
type whiteListParams = { type saveUMengConfigParams = {
deviceId: string;
appCode: string; appCode: string;
}; };
type wxLoginParams = { type saveWxConfigParams = {
code: string; appCode: string;
appId: string; };
type STSInfo = {
securityToken?: string;
expiration?: string;
accessKeySecret?: string;
accessKeyId?: string;
stsRole?: string;
bucket?: string;
endpoint?: string;
};
type UmengConfigBo = {
umengAppKeyAli?: string;
umengAppSecret?: string;
umengAppCode?: string;
umengAppKey?: string;
linkId?: string;
bindWx?: boolean;
}; };
type wxLoginV2Params = { type UserBo = {
code: string; id?: number;
appId: string; mobile?: string;
name?: string;
nickname?: string;
avatar?: string;
money?: number;
aliPayAccount?: string;
income?: number;
goldCoin?: number;
inviteCode?: string; inviteCode?: string;
rawData?: string; inviteUrl?: string;
wxOpenId?: string;
createdAt?: number;
};
type UserQuery = {
current?: number;
pageSize?: number;
appCode?: string;
};
type WxConfig = {
appId?: string;
appSecret?: string;
}; };
} }

Loading…
Cancel
Save