解决合并冲突,并实现种子junit单元测试

Change-Id: Ifff1a63aed76b380ea4767a1e6e1f31f3e9c0882
diff --git a/ruoyi-admin/src/main/resources/static/p__PostReview__index.694e1cc3.async.js b/ruoyi-admin/src/main/resources/static/p__PostReview__index.694e1cc3.async.js
new file mode 100644
index 0000000..75cd3e4
--- /dev/null
+++ b/ruoyi-admin/src/main/resources/static/p__PostReview__index.694e1cc3.async.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4873,8677],{99190:function(Oe,Z,n){n.r(Z);var Q=n(15009),m=n.n(Q),X=n(99289),f=n.n(X),Y=n(5574),c=n.n(Y),_=n(67294),R=n(60960),q=n(25278),I=n(92398),h=n(2453),x=n(66309),F=n(78957),v=n(83622),ee=n(4393),ne=n(96154),W=n(17788),se=n(71230),S=n(15746),te=n(15241),re=n(99611),b=n(63606),y=n(97937),K=n(48689),M=n(7662),ae=n(52063),E=n(27185),e=n(85893),ue=R.Z.Title,le=R.Z.Paragraph,ie=q.Z.TextArea,L=I.Z.TabPane,oe=function(){var _e=(0,_.useState)("review"),U=c()(_e,2),C=U[0],de=U[1],ce=(0,_.useState)([]),k=c()(ce,2),he=k[0],Ee=k[1],ve=(0,_.useState)(!1),w=c()(ve,2),me=w[0],N=w[1],Pe=(0,_.useState)(!1),H=c()(Pe,2),je=H[0],j=H[1],De=(0,_.useState)(!1),V=c()(De,2),pe=V[0],A=V[1],ge=(0,_.useState)(null),z=c()(ge,2),r=z[0],D=z[1],fe=(0,_.useState)(null),$=c()(fe,2),d=$[0],T=$[1],xe=(0,_.useState)(""),G=c()(xe,2),O=G[0],p=G[1];(0,_.useEffect)(function(){C==="review"&&B()},[C]);var B=function(){var a=f()(m()().mark(function t(){var s;return m()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return N(!0),u.prev=1,u.next=4,(0,M.fP)({pageNum:1,pageSize:100,status:"0"});case 4:s=u.sent,s.code===200?Ee(s.rows||[]):h.ZP.error(s.msg||"\u83B7\u53D6\u5F85\u5BA1\u6838\u5E16\u5B50\u5931\u8D25"),u.next=11;break;case 8:u.prev=8,u.t0=u.catch(1),h.ZP.error("\u83B7\u53D6\u5F85\u5BA1\u6838\u5E16\u5B50\u5931\u8D25");case 11:return u.prev=11,N(!1),u.finish(11);case 14:case"end":return u.stop()}},t,null,[[1,8,11,14]])}));return function(){return a.apply(this,arguments)}}(),Me=function(){var a=f()(m()().mark(function t(s,l,u){var g;return m()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,(0,M.RB)(s,l,u);case 3:g=o.sent,g.code===200?(h.ZP.success(l==="approve"?"\u5E16\u5B50\u5BA1\u6838\u901A\u8FC7":"\u5E16\u5B50\u5DF2\u62D2\u7EDD"),B()):h.ZP.error(g.msg||"\u64CD\u4F5C\u5931\u8D25"),o.next=10;break;case 7:o.prev=7,o.t0=o.catch(0),h.ZP.error("\u64CD\u4F5C\u5931\u8D25");case 10:case"end":return o.stop()}},t,null,[[0,7]])}));return function(s,l,u){return a.apply(this,arguments)}}(),Ce=function(){var a=f()(m()().mark(function t(s,l){var u;return m()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,(0,M._4)(s,l);case 3:u=i.sent,u.code===200?(h.ZP.success("\u5E16\u5B50\u5DF2\u4E0B\u67B6"),B()):h.ZP.error(u.msg||"\u64CD\u4F5C\u5931\u8D25"),i.next=10;break;case 7:i.prev=7,i.t0=i.catch(0),h.ZP.error("\u64CD\u4F5C\u5931\u8D25");case 10:case"end":return i.stop()}},t,null,[[0,7]])}));return function(s,l){return a.apply(this,arguments)}}(),P=function(t,s){D(t),T(s),p(""),A(!0)},Ae=function(){!r||!d||(d==="takedown"?Ce(r.postId||0,O):Me(r.postId||0,d,O),A(!1),D(null),T(null),p(""))},J=function(t){D(t),j(!0)},Te=[{title:"\u5E16\u5B50\u6807\u9898",dataIndex:"title",key:"title",width:200,render:function(t,s){return(0,e.jsx)("a",{onClick:function(){return J(s)},children:t})}},{title:"\u4F5C\u8005",dataIndex:"author",key:"author",width:100},{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"publishTime",key:"publishTime",width:150},{title:"\u72B6\u6001",dataIndex:"status",key:"status",width:100,render:function(t){var s={0:{color:"orange",text:"\u5F85\u5BA1\u6838"},1:{color:"green",text:"\u5DF2\u53D1\u5E03"},2:{color:"red",text:"\u5DF2\u62D2\u7EDD"},3:{color:"gray",text:"\u5DF2\u4E0B\u67B6"}},l=s[t]||{color:"gray",text:"\u672A\u77E5"};return(0,e.jsx)(x.Z,{color:l.color,children:l.text})}},{title:"\u6807\u7B7E",dataIndex:"tags",key:"tags",width:150,render:function(t){return t?t.split(",").map(function(s){return(0,e.jsx)(x.Z,{color:"blue",children:s},s)}):"-"}},{title:"\u64CD\u4F5C",key:"action",width:250,render:function(t,s){return(0,e.jsxs)(F.Z,{size:"small",children:[(0,e.jsx)(v.ZP,{type:"link",icon:(0,e.jsx)(re.Z,{}),onClick:function(){return J(s)},children:"\u67E5\u770B"}),s.status==="0"&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v.ZP,{type:"link",icon:(0,e.jsx)(b.Z,{}),style:{color:"green"},onClick:function(){return P(s,"approve")},children:"\u901A\u8FC7"}),(0,e.jsx)(v.ZP,{type:"link",danger:!0,icon:(0,e.jsx)(y.Z,{}),onClick:function(){return P(s,"reject")},children:"\u62D2\u7EDD"})]}),s.status==="1"&&(0,e.jsx)(v.ZP,{type:"link",danger:!0,icon:(0,e.jsx)(K.Z,{}),onClick:function(){return P(s,"takedown")},children:"\u4E0B\u67B6"})]})}}];return(0,e.jsxs)("div",{className:E.Z.postReviewContainer,children:[(0,e.jsx)(ee.Z,{title:"\u5E16\u5B50\u5BA1\u6838\u7BA1\u7406",children:(0,e.jsxs)(I.Z,{activeKey:C,onChange:de,children:[(0,e.jsx)(L,{tab:"\u5E16\u5B50\u53D1\u5E03\u7BA1\u7406",children:(0,e.jsx)(ne.Z,{columns:Te,dataSource:he,loading:me,rowKey:"postId",pagination:{pageSize:10,showTotal:function(t){return"\u5171 ".concat(t," \u6761\u8BB0\u5F55")}}})},"review"),(0,e.jsx)(L,{tab:"\u5E16\u5B50\u4E3E\u62A5\u7BA1\u7406",children:(0,e.jsx)(ae.default,{})},"report")]})}),(0,e.jsx)(W.Z,{title:"\u5E16\u5B50\u8BE6\u60C5",open:je,onCancel:function(){j(!1),D(null)},footer:null,width:800,children:r&&(0,e.jsxs)("div",{className:E.Z.postDetail,children:[(0,e.jsx)(ue,{level:3,children:r.title}),(0,e.jsx)("div",{className:E.Z.postMeta,children:(0,e.jsxs)(se.Z,{gutter:16,children:[(0,e.jsxs)(S.Z,{span:12,children:[(0,e.jsxs)("p",{children:[(0,e.jsx)("strong",{children:"\u4F5C\u8005\uFF1A"}),r.author]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("strong",{children:"\u53D1\u5E03\u65F6\u95F4\uFF1A"}),r.publishTime]})]}),(0,e.jsxs)(S.Z,{span:12,children:[(0,e.jsxs)("p",{children:[(0,e.jsx)("strong",{children:"\u6D4F\u89C8\u91CF\uFF1A"}),r.views||0]}),(0,e.jsxs)("p",{children:[(0,e.jsx)("strong",{children:"\u70B9\u8D5E\u6570\uFF1A"}),r.likes||0]})]})]})}),r.coverImage&&(0,e.jsx)("div",{className:E.Z.postCover,children:(0,e.jsx)(te.Z,{src:r.coverImage,alt:"\u5C01\u9762\u56FE\u7247",style:{maxWidth:"100%",maxHeight:"200px"}})}),(0,e.jsxs)("div",{className:E.Z.postTags,children:[(0,e.jsx)("strong",{children:"\u6807\u7B7E\uFF1A"}),r.tags?r.tags.split(",").map(function(a){return(0,e.jsx)(x.Z,{color:"blue",children:a},a)}):(0,e.jsx)("span",{children:"\u65E0\u6807\u7B7E"})]}),(0,e.jsxs)("div",{className:E.Z.postSummary,children:[(0,e.jsx)("strong",{children:"\u6458\u8981\uFF1A"}),(0,e.jsx)(le,{children:r.summary})]}),(0,e.jsxs)("div",{className:E.Z.postContent,children:[(0,e.jsx)("strong",{children:"\u5185\u5BB9\uFF1A"}),(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:r.content||""}})]}),(0,e.jsx)("div",{className:E.Z.postActions,children:(0,e.jsxs)(F.Z,{children:[r.status==="0"&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v.ZP,{type:"primary",icon:(0,e.jsx)(b.Z,{}),onClick:function(){P(r,"approve"),j(!1)},children:"\u901A\u8FC7\u5BA1\u6838"}),(0,e.jsx)(v.ZP,{danger:!0,icon:(0,e.jsx)(y.Z,{}),onClick:function(){P(r,"reject"),j(!1)},children:"\u62D2\u7EDD\u5BA1\u6838"})]}),r.status==="1"&&(0,e.jsx)(v.ZP,{danger:!0,icon:(0,e.jsx)(K.Z,{}),onClick:function(){P(r,"takedown"),j(!1)},children:"\u5F3A\u5236\u4E0B\u67B6"})]})})]})}),(0,e.jsxs)(W.Z,{title:d==="approve"?"\u5BA1\u6838\u901A\u8FC7":d==="reject"?"\u5BA1\u6838\u62D2\u7EDD":"\u5F3A\u5236\u4E0B\u67B6",open:pe,onOk:Ae,onCancel:function(){A(!1),D(null),T(null),p("")},okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:[(0,e.jsxs)("div",{style:{marginBottom:16},children:[(0,e.jsx)("strong",{children:"\u5E16\u5B50\uFF1A"}),r==null?void 0:r.title]}),(0,e.jsxs)("div",{children:[(0,e.jsxs)("strong",{children:[d==="approve"?"\u901A\u8FC7\u7406\u7531":d==="reject"?"\u62D2\u7EDD\u7406\u7531":"\u4E0B\u67B6\u7406\u7531","\uFF08\u53EF\u9009\uFF09\uFF1A"]}),(0,e.jsx)(ie,{value:O,onChange:function(t){return p(t.target.value)},placeholder:d==="approve"?"\u8BF7\u8F93\u5165\u5BA1\u6838\u901A\u8FC7\u7684\u7406\u7531...":d==="reject"?"\u8BF7\u8F93\u5165\u5BA1\u6838\u62D2\u7EDD\u7684\u7406\u7531...":"\u8BF7\u8F93\u5165\u5F3A\u5236\u4E0B\u67B6\u7684\u7406\u7531...",rows:4,style:{marginTop:8}})]})]})]})};Z.default=oe}}]);