API.ts 355 B

12345678910111213141516171819
  1. import { request } from 'umi';
  2. export async function updateAdmin(data: object){
  3. return request('/api/admin/superviser/updateAdmin',{
  4. method:'post',
  5. data
  6. })
  7. }
  8. // 查询上级主管
  9. export async function getSelectName(name: object){
  10. return request('/api/admin/organization/selectName',{
  11. method:'post',
  12. data:{
  13. name
  14. }
  15. })
  16. }