Files
spring-festival-greetings/api/wallpaper.js
2026-02-26 14:35:42 +08:00

30 lines
700 B
JavaScript

import { request } from "@/utils/request.js";
export const getWallpaperList = async (categoryId, page = 1) => {
return request({
url: `/api/blessing/wallpaper/list?categoryId=${categoryId}&page=${page}`,
method: "GET",
});
};
export const getWallpaperCategoryList = async () => {
return request({
url: `/api/blessing/wallpaper/category/list`,
method: "GET",
});
};
export const getWallpaperRecommendList = async () => {
return request({
url: `/api/blessing/wallpaper/recommend/list`,
method: "get",
});
};
export const getWallpaperSameList = async (id) => {
return request({
url: `/api/blessing/wallpaper/same/list?id=${id}`,
method: "get",
});
};