algo.ts 407 B

123456789101112131415161718192021
  1. import { http } from '@/utils/http/axios';
  2. export function getAlgoInfo() {
  3. return http.request({
  4. url: '/algo/getAlgoList',
  5. method: 'get',
  6. });
  7. }
  8. export function algoInfoModify(algoId: number, pushLinkPrompt: string, pushStatement: string) {
  9. return http.request({
  10. url: '/article/add',
  11. method: 'post',
  12. data: {
  13. algoId,
  14. pushLinkPrompt,
  15. pushStatement,
  16. },
  17. });
  18. }