Files
aishangjia-uniapp/api/redis-util.js

20 lines
397 B
JavaScript

import http from './index.js';
import {
serverUrl
} from '@/config.js';
/**
* 缓存工具包
* @author 科技小王子
* @since 2023-06-23 11:34:03
*/
// 获取配置信息
export const getConfig = () => http.get(serverUrl + '/system/cache/config')
// 添加关注
export const addFocus = (data) => http.post(serverUrl + '/shop/user-follow', data)
export default {
getConfig,
addFocus
}