var F=Object.defineProperty,q=Object.defineProperties;var D=Object.getOwnPropertyDescriptors;var d=Object.getOwnPropertySymbols;var u=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable;var c=(e,a,t)=>a in e?F(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,s=(e,a)=>{for(var t in a||(a={}))u.call(a,t)&&c(e,t,a[t]);if(d)for(var t of d(a))m.call(a,t)&&c(e,t,a[t]);return e},p=(e,a)=>q(e,D(a));var f=(e,a)=>{var t={};for(var r in e)u.call(e,r)&&a.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&d)for(var r of d(e))a.indexOf(r)<0&&m.call(e,r)&&(t[r]=e[r]);return t};import{am as o}from"./index.js";const n="/v1/system/log",$=e=>o.post({url:`${n}/`,data:e}),k=(e,a=!1)=>o.put({url:`${n}/`,data:e,params:{updateAllFields:a}}),A=e=>o.delete({url:`${n}/${e}`}),B=e=>o.get({url:`${n}/search`,params:e}),T=e=>o.get({url:`${n}/${e}`}),l={xs:{span:24},sm:{span:24},lg:{span:8}},Y={span:24},i={model:"Log",viewInPage:!1,properties:[{field:"id",label:"ID系统自动生成",defaultValue:void 0,form:{componentProps:{allowClear:!1,placeholder:"ID系统自动生成"},colProps:l,component:"InputNumber",rules:[{required:!0,message:"请输入ID系统自动生成！"}]},table:{}},{field:"userId",label:"操作人",defaultValue:0,form:{componentProps:{allowClear:!1,placeholder:"操作人"},colProps:l,component:"InputNumber",rules:[{required:!0,message:"请输入操作人！"}]},table:{}},{field:"username",label:"操作人",defaultValue:void 0,form:{componentProps:{allowClear:!0,placeholder:"操作人"},colProps:l,component:"Input"},table:{}},{field:"description",label:"描述",defaultValue:void 0,form:{componentProps:{allowClear:!1,placeholder:"描述"},component:"Input",colProps:l,rules:[{required:!0,message:"请输入描述！"}]},table:{}},{field:"remark",label:"说明",defaultValue:void 0,form:{componentProps:{allowClear:!0,placeholder:"说明"},colProps:l,component:"Input"},table:{}},{field:"createTime",label:"日志时间",defaultValue:void 0,form:{colProps:l,componentProps:{allowClear:!1,placeholder:["开始时间","结束时间"],format:"YYYY-MM-DD",valueFormat:"YYYY-MM-DD",showTime:!1},component:"RangePicker",rules:[{required:!0,message:"请选择日志时间！"}]},table:{}}]},h=["userId","description","createTime"],w=["description","userId","remark"],M=["username","description","remark","createTime"],P=["description","userId","username","remark","createTime"],I=new Map(h.map((e,a)=>[e,a])),y=i.properties.filter(e=>h.includes(e.field)).map(r=>{var{field:e,label:a,form:v}=r,t=f(v,[]);return p(s({field:e,label:a,defaultValue:void 0},t),{required:!1,rules:[{required:!1}]})}).sort((e,a)=>{const t=I.get(e.field),r=I.get(a.field);return t-r}),g=new Map(w.map((e,a)=>[e,a])),N=i.properties.filter(e=>w.includes(e.field)).map(({field:e,label:a,defaultValue:t,form:r})=>p(s({field:e,label:a,defaultValue:t},r),{colProps:Y})).sort((e,a)=>{const t=g.get(e.field),r=g.get(a.field);return t-r}),x=new Map(M.map((e,a)=>[e,a])),S=i.properties.filter(e=>M.includes(e.field)).map(({field:e,label:a,table:t})=>s({dataIndex:e,title:a},t)).sort((e,a)=>{const t=x.get(e.dataIndex),r=x.get(a.dataIndex);return t-r}),b=new Map(P.map((e,a)=>[e,a])),H=i.properties.filter(e=>P.includes(e.field)).map(({field:e,label:a,table:t})=>s({dataIndex:e,title:a},t)).sort((e,a)=>{const t=b.get(e.dataIndex),r=b.get(a.dataIndex);return t-r});export{y as a,$ as b,S as c,H as d,N as f,T as g,A as r,B as s,k as u};
