billboard.api.ts 500 B

123456789101112131415161718192021
  1. import { BillboardType } from './billboard.data';
  2. import { useUserStore } from '/@/store/modules/user';
  3. import { defHttp } from '/@/utils/http/axios';
  4. const store = useUserStore();
  5. enum Api {
  6. getSummary = '/ventanaly-company/company/index/getEachMinePlateInfo',
  7. }
  8. /**
  9. * 获取看板的详细数据
  10. * @param params
  11. */
  12. export const getSummary: () => Promise<BillboardType[]> = () =>
  13. defHttp.post({
  14. url: Api.getSummary,
  15. params: {
  16. userName: store.userInfo?.username,
  17. },
  18. });