Chore: Move Files

解决后端代码部署问题,需要将所有依赖移动到 api 文件夹下
This commit is contained in:
奇趣保罗 2022-04-12 22:56:01 +08:00
parent 0fb853a1bd
commit 5bc344703f
10 changed files with 9 additions and 9 deletions

View File

@ -1,9 +1,9 @@
import { Api, Get, Query, useContext } from "@midwayjs/hooks";
import { getSong } from "../utils/netease";
import { getSong } from "./utils/netease";
import { client } from "../utils/redis";
import { prisma } from "../utils/prisma";
import { client } from "./utils/redis";
import { prisma } from "./utils/prisma";
import { ACGM, Prisma } from "@prisma/client";
export default Api(

View File

@ -1,7 +1,7 @@
import { Api, Get, Query, useContext } from "@midwayjs/hooks";
import fetch from "isomorphic-unfetch";
import { client } from "../utils/redis";
import { client } from "./utils/redis";
export default Api(
Get(),

View File

@ -1,8 +1,8 @@
import { Api, Get, Query, useContext } from '@midwayjs/hooks';
import { getSong } from "../utils/netease";
import { getSong } from "./utils/netease";
import { client } from '../utils/redis';
import { client } from './utils/redis';
export default Api(
Get(),

View File

@ -1,6 +1,6 @@
import { Api, Get } from "@midwayjs/hooks";
import { client } from "../utils/redis";
import { client } from "./utils/redis";
export default Api(
Get(),

View File

@ -1,8 +1,8 @@
import { Api, Get, Query, useContext } from "@midwayjs/hooks";
import { source } from "../data/wallpaper";
import { source } from "./data/wallpaper";
import { random } from "lodash";
import { client } from "../utils/redis";
import { client } from "./utils/redis";
export default Api(
Get(),