parent
15690d4d02
commit
8638b4de30
@ -0,0 +1,28 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 获取参数配置
|
||||
export function getSettings() {
|
||||
return request({
|
||||
url: '/webmagic/_36wallpaper/getSettings',
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 修改参数配置
|
||||
export function updateSettings(json) {
|
||||
return request({
|
||||
url: '/webmagic/_36wallpaper/updateSettings',
|
||||
method: 'put',
|
||||
params: json
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 重置参数配置
|
||||
export function resetSettings() {
|
||||
return request({
|
||||
url: '/webmagic/_36wallpaper/reset',
|
||||
method: 'put',
|
||||
})
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
<template>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "_36wallpaperShow"
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
@ -0,0 +1,35 @@
|
||||
package com.xjs._36wallpaper.consts;
|
||||
|
||||
/**
|
||||
* 36壁纸网配置参数常量类
|
||||
* @author xiejs
|
||||
* @since 2022-02-21
|
||||
*/
|
||||
public class _36wallpaperConst {
|
||||
|
||||
/**
|
||||
* 是否全网爬虫
|
||||
*/
|
||||
public static boolean INIT = false;
|
||||
|
||||
/**
|
||||
* 是否下载图片带磁盘
|
||||
*/
|
||||
public static boolean DOWNLOAD_IMG = false;
|
||||
|
||||
/**
|
||||
* 图片保存到磁盘的路径
|
||||
*/
|
||||
public static String PATH = "D:\\Dev\\WebCrawler\\36wallpaper";
|
||||
|
||||
/**
|
||||
* redis的key
|
||||
*/
|
||||
public static final String REDIS_KEY = "sys_config:xjs.webmagic._36wallpaper";
|
||||
|
||||
/**
|
||||
* 系统配置表中的key
|
||||
*/
|
||||
public static final String CONFIG_KEY = "xjs.webmagic._36wallpaper";
|
||||
|
||||
}
|
Loading…
Reference in new issue