import{r,W as l}from"./index.CN1lNsL-.js";import{a as n}from"./authFunction.qG4aq-Mj.js";const o="/api/system/app_user/";function s(e){return r({url:o,method:"get",params:e})}function a(e){return r({url:o+e+"/",method:"get"})}function u(e){return r({url:o,method:"post",data:e})}function f(){return r({url:o,method:"get"})}const i=function({crudExpose:e}){return{crudOptions:{request:{pageRequest:async t=>await s(t),addRequest:async({form:t})=>await u(t),getDetail:async({row:t})=>await a(t.id)},actionbar:{buttons:{add:{show:n("area:Create")}}},pagination:{show:!1},columns:{_index:{title:"序号",form:{show:!1},column:{type:"index",align:"center",width:"70px",columnSetDisabled:!0}},user_code:{title:"学号",type:"input",column:{minWidth:120},form:{component:{placeholder:"请填写学号"},rules:[{required:!0,message:"请填写学号"}]}},username:{title:"昵称",type:"input",column:{show:!1,minWidth:120},form:{component:{placeholder:"请填写昵称"},rules:[{required:!0,message:"请填写昵称"}]}},name:{title:"名称",search:{show:!0},treeNode:!0,type:"input",column:{minWidth:120},form:{rules:[{required:!0,message:"名称必填项"}],component:{placeholder:"请输入名称"}}},password:{title:"密码",type:"input",column:{minWidth:120,show:!1},form:{component:{placeholder:"请填写密码"},rules:[{required:!0,message:"请填写密码"}]}},email:{title:"邮箱",type:"input",column:{show:!1,minWidth:120},form:{component:{placeholder:"请填写邮箱"},rules:[{required:!1,message:"请填写邮箱"}]}},mobile:{title:"手机号",type:"input",column:{show:!1,minWidth:120},form:{component:{placeholder:"请填写手机号"},rules:[{required:!0,message:"请填写手机号"}]}},gender:{title:"性别",type:"dict-select",column:{show:!1,minWidth:120},dict:l({data:[{label:"男",value:1},{label:"女",value:2}]}),form:{component:{placeholder:"请选择性别"},rules:[{required:!0,message:"请选择性别"}]}},user_type:{title:"用户类型",type:"dict-select",column:{minWidth:120},dict:l({data:[{label:"学生",value:0},{label:"教师",value:1},{label:"校外团体",value:2}]}),form:{component:{placeholder:"请填写租户"},rules:[{required:!1,message:"请填写租户"}]}},organization:{title:"学院",type:"input",column:{show:!0,minWidth:120},form:{component:{placeholder:"请填写学院"},rules:[{required:!1,message:"请填写学院"}]}},sub_organization:{title:"专业",type:"input",column:{show:!0,minWidth:120},form:{component:{placeholder:"请填写专业"},rules:[{required:!1,message:"请填写专业"}]}},grade_or_level:{title:"年级",type:"input",column:{show:!0,minWidth:120},form:{component:{placeholder:"请填写年级"},rules:[{required:!1,message:"请填写年级"}]}},class_or_group:{title:"班级",type:"input",column:{show:!0,minWidth:120},form:{component:{placeholder:"请填写班级"},rules:[{required:!1,message:"请填写班级"}]}}}}}},g=Object.freeze(Object.defineProperty({__proto__:null,createCrudOptions:i},Symbol.toStringTag,{value:"Module"}));export{f as G,g as a,i as c};
