getusername.js 571 Bytes
// 封装axios请求
import axios from "axios";
// 创建axios的对象
const instance = axios.create({
  baseURL: "http://192.168.2.235/management/rest/users",
})



export const getusername = (data) => instance({

  url: '', // 请求地址
  method: 'get',
  params:{
    queryOptions: {
      conditionGroup: {
        conditions: [
          {
            property: "loginName",
            value:data,
            operator: "IN",
          },
        ],
        queryRelation: "AND",
      },
      orderBys:[{"property":"sort","direction":"desc"}]
    },
  },

})