├── README.md ├── novelaibt ├── authortag.sql ├── dashang.sql ├── pom.xml ├── src │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── nanjie │ │ │ │ ├── common │ │ │ │ ├── Result.java │ │ │ │ └── typeListDTO.java │ │ │ │ ├── config │ │ │ │ ├── MyBatisPlusConfig.java │ │ │ │ ├── QiniuCloudUtil.java │ │ │ │ ├── SingerPicConfig.java │ │ │ │ └── WebConfig.java │ │ │ │ ├── controller │ │ │ │ ├── AuthortagController.java │ │ │ │ ├── DashangController.java │ │ │ │ ├── TotaltypeController.java │ │ │ │ ├── TypelistController.java │ │ │ │ └── typeimageController.java │ │ │ │ ├── entity │ │ │ │ ├── Authortag.java │ │ │ │ ├── Dashang.java │ │ │ │ ├── Totaltype.java │ │ │ │ ├── Typelist.java │ │ │ │ └── vo │ │ │ │ │ └── typeList_vo.java │ │ │ │ ├── mapper │ │ │ │ ├── AuthortagMapper.java │ │ │ │ ├── DashangMapper.java │ │ │ │ ├── TotaltypeMapper.java │ │ │ │ └── TypelistMapper.java │ │ │ │ ├── novelaibtApplication.java │ │ │ │ └── service │ │ │ │ ├── IAuthortagService.java │ │ │ │ ├── IDashangService.java │ │ │ │ ├── ITotaltypeService.java │ │ │ │ ├── ITypelistService.java │ │ │ │ └── impl │ │ │ │ ├── AuthortagServiceImpl.java │ │ │ │ ├── DashangServiceImpl.java │ │ │ │ ├── TotaltypeServiceImpl.java │ │ │ │ └── TypelistServiceImpl.java │ │ └── resources │ │ │ ├── application.yml │ │ │ └── mapper │ │ │ ├── AuthortagMapper.xml │ │ │ ├── DashangMapper.xml │ │ │ ├── TotaltypeMapper.xml │ │ │ └── TypelistMapper.xml │ └── test │ │ └── java │ │ └── qiniuyun.java ├── target │ ├── classes │ │ ├── application.yml │ │ ├── com │ │ │ └── nanjie │ │ │ │ ├── common │ │ │ │ ├── Result.class │ │ │ │ └── typeListDTO.class │ │ │ │ ├── config │ │ │ │ ├── MyBatisPlusConfig.class │ │ │ │ ├── QiniuCloudUtil$Ret.class │ │ │ │ ├── QiniuCloudUtil.class │ │ │ │ └── WebConfig.class │ │ │ │ ├── controller │ │ │ │ ├── AuthortagController.class │ │ │ │ ├── DashangController.class │ │ │ │ ├── TotaltypeController.class │ │ │ │ ├── TypelistController.class │ │ │ │ └── typeimageController.class │ │ │ │ ├── entity │ │ │ │ ├── Authortag.class │ │ │ │ ├── Dashang.class │ │ │ │ ├── Totaltype.class │ │ │ │ ├── Typelist.class │ │ │ │ └── vo │ │ │ │ │ └── typeList_vo.class │ │ │ │ ├── mapper │ │ │ │ ├── AuthortagMapper.class │ │ │ │ ├── DashangMapper.class │ │ │ │ ├── TotaltypeMapper.class │ │ │ │ └── TypelistMapper.class │ │ │ │ ├── novelaibtApplication.class │ │ │ │ └── service │ │ │ │ ├── IAuthortagService.class │ │ │ │ ├── IDashangService.class │ │ │ │ ├── ITotaltypeService.class │ │ │ │ ├── ITypelistService.class │ │ │ │ └── impl │ │ │ │ ├── AuthortagServiceImpl.class │ │ │ │ ├── DashangServiceImpl.class │ │ │ │ ├── TotaltypeServiceImpl.class │ │ │ │ └── TypelistServiceImpl.class │ │ └── mapper │ │ │ ├── AuthortagMapper.xml │ │ │ ├── DashangMapper.xml │ │ │ ├── TotaltypeMapper.xml │ │ │ └── TypelistMapper.xml │ ├── maven-archiver │ │ └── pom.properties │ └── maven-status │ │ └── maven-compiler-plugin │ │ ├── compile │ │ └── default-compile │ │ │ ├── createdFiles.lst │ │ │ └── inputFiles.lst │ │ └── testCompile │ │ └── default-testCompile │ │ ├── createdFiles.lst │ │ └── inputFiles.lst ├── totaltype.sql └── typelist.sql ├── novelaimage ├── pom.xml ├── src │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── nanjie │ │ │ │ ├── common │ │ │ │ ├── Result.java │ │ │ │ └── WebConfig.java │ │ │ │ ├── controller │ │ │ │ └── imageController.java │ │ │ │ └── novelaimageApplication.java │ │ └── resources │ │ │ └── application.yml │ └── test │ │ └── java │ │ └── image.java └── target │ ├── classes │ ├── application.yml │ └── com │ │ └── nanjie │ │ ├── common │ │ ├── Result.class │ │ └── WebConfig.class │ │ ├── controller │ │ └── imageController.class │ │ └── novelaimageApplication.class │ ├── maven-archiver │ └── pom.properties │ ├── maven-status │ └── maven-compiler-plugin │ │ ├── compile │ │ └── default-compile │ │ │ ├── createdFiles.lst │ │ │ └── inputFiles.lst │ │ └── testCompile │ │ └── default-testCompile │ │ ├── createdFiles.lst │ │ └── inputFiles.lst │ ├── nolaaiimage-1.0-SNAPSHOT.jar │ ├── nolaaiimage-1.0-SNAPSHOT.jar.original │ └── test-classes │ └── image.class └── novelaitag ├── README.md ├── babel.config.js ├── jsconfig.json ├── package-lock.json ├── package.json ├── public ├── favicon.ico └── index.html ├── src ├── App.vue ├── assets │ ├── maomao.jpg │ └── weixing.jpg ├── components │ ├── Home.vue │ ├── addtag.vue │ ├── giveupmoney.vue │ └── okimge.vue ├── main.js ├── plugins │ ├── axios.js │ └── element.js └── router │ └── index.js └── vue.config.js /README.md: -------------------------------------------------------------------------------- 1 | # noveaitag 2 | 使用springboot和vue2.0写的,功能很简单 3 | -------------------------------------------------------------------------------- /novelaibt/authortag.sql: -------------------------------------------------------------------------------- 1 | /* 2 | Navicat MySQL Data Transfer 3 | 4 | Source Server : mysql 5 | Source Server Version : 80029 6 | Source Host : localhost:3306 7 | Source Database : aitag 8 | 9 | Target Server Type : MYSQL 10 | Target Server Version : 80029 11 | File Encoding : 65001 12 | 13 | Date: 2022-11-02 09:25:13 14 | */ 15 | 16 | SET FOREIGN_KEY_CHECKS=0; 17 | 18 | -- ---------------------------- 19 | -- Table structure for authortag 20 | -- ---------------------------- 21 | DROP TABLE IF EXISTS `authortag`; 22 | CREATE TABLE `authortag` ( 23 | `id` int NOT NULL AUTO_INCREMENT COMMENT '无意义自增长', 24 | `author` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, 25 | `url` varchar(5024) COLLATE utf8_unicode_ci DEFAULT NULL, 26 | `tag` varchar(5024) COLLATE utf8_unicode_ci DEFAULT NULL, 27 | `negativetag` varchar(5024) COLLATE utf8_unicode_ci DEFAULT NULL, 28 | `SamplingSteps` int NOT NULL, 29 | PRIMARY KEY (`id`) 30 | ) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; 31 | 32 | -- ---------------------------- 33 | -- Records of authortag 34 | -- ---------------------------- 35 | INSERT INTO `authortag` VALUES ('5', '三笠', 'http://rjsum4lnm.hn-bkt.clouddn.com/890b2043-1c96-442a-82c4-4541ae46b89a', '{{masterpiece}},best quality,1girl,solo,illustration,ahoge,young loli,gradient white hair,longhair,{{beautiful detailed eyes}}', 'lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry', '50'); 36 | INSERT INTO `authortag` VALUES ('6', '三笠', 'http://rjsum4lnm.hn-bkt.clouddn.com/c49ffe7e-dcac-45c2-b8f7-49321fd8dd78', '{{masterpiece}},best quality,1girl,solo,illustration,ahoge,young loli,gradient white hair,longhair,{{beautiful detailed eyes}', 'lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry', '50'); 37 | INSERT INTO `authortag` VALUES ('7', '三笠', 'http://rjsum4lnm.hn-bkt.clouddn.com/f193aa26-f612-4b1b-8c90-88285df3cf03', '{{masterpiece}},best quality,1girl,solo,illustration,ahoge,young loli,gradient white hair,longhair,{{beautiful detailed eyes}}', 'lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry', '50'); 38 | INSERT INTO `authortag` VALUES ('8', '三笠', '', '{{masterpiece}},best quality,1girl,solo,illustration,ahoge,young loli,gradient white hair,longhair,{{beautiful detailed eyes}},', 'lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry', '50'); 39 | INSERT INTO `authortag` VALUES ('9', '三笠', 'http://rjsum4lnm.hn-bkt.clouddn.com/77b1511e-460e-4e53-94d3-b44199320edb', '{{masterpiece}},best quality,1girl,solo,illustration,ahoge,young loli,gradient white hair,longhair,{{beautiful detailed eyes}},', 'lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry', '50'); 40 | INSERT INTO `authortag` VALUES ('10', '三笠', 'http://rjsum4lnm.hn-bkt.clouddn.com/a71442fe-7e99-453f-a17b-7047211c6e24', '1girl,jk,extremely detailed 8k wallpaper,beatiful eyes,beatiful detailed face,blue hair,blush,sweats,student.', 'lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry', '50'); 41 | INSERT INTO `authortag` VALUES ('11', '三笠', '', 'ddddddddddddd', 'ddd', '50'); 42 | INSERT INTO `authortag` VALUES ('12', 'dddddd', '', 'dddddd', 'ddd', '50'); 43 | INSERT INTO `authortag` VALUES ('13', 'dddd', 'http://rjsum4lnm.hn-bkt.clouddn.com/820a6f23-7c51-4a68-bbc8-238f4f46db53', 'ddd', 'ddd', '50'); 44 | INSERT INTO `authortag` VALUES ('14', 'afawd', 'http://rjsum4lnm.hn-bkt.clouddn.com/c5eac981-a0d4-4576-a37f-76bf31b218af', 'dawdawd', 'awdaw', '50'); 45 | INSERT INTO `authortag` VALUES ('15', 'qqq', 'http://rjsum4lnm.hn-bkt.clouddn.com/05be43f3-cc9b-46dc-8ac8-5fbaba245409', 'qqq', 'qq', '50'); 46 | INSERT INTO `authortag` VALUES ('16', 'wwwwwww', 'http://rjsum4lnm.hn-bkt.clouddn.com/ebe96001-607c-452d-90b9-5959bb057c02', '{{masterpiece}},best quality,1girl,solo,illustration,ahoge,young loli,gradient white hair,longhair,{{beautiful detailed eyes}},blue serafuku,looking_at_viewer,small breast,gradient blue eyes,arms_behind_back,hair_flower,beautiful detailed sky,water,half body,sunset,flower_petals,detached_sleeves,smile,beautiful detailed hair,', '{{masterpiece}},best quality,1girl,solo,illustration,ahoge,young loli,gradient white hair,longhair,{{beautiful detailed eyes}},blue serafuku,looking_at_viewer,small breast,gradient blue eyes,arms_behind_back,hair_flower,beautiful detailed sky,water,half body,sunset,flower_petals,detached_sleeves,smile,beautiful detailed hair,', '50'); 47 | -------------------------------------------------------------------------------- /novelaibt/dashang.sql: -------------------------------------------------------------------------------- 1 | /* 2 | Navicat MySQL Data Transfer 3 | 4 | Source Server : mysql 5 | Source Server Version : 80029 6 | Source Host : localhost:3306 7 | Source Database : aitag 8 | 9 | Target Server Type : MYSQL 10 | Target Server Version : 80029 11 | File Encoding : 65001 12 | 13 | Date: 2022-11-02 09:24:49 14 | */ 15 | 16 | SET FOREIGN_KEY_CHECKS=0; 17 | 18 | -- ---------------------------- 19 | -- Table structure for dashang 20 | -- ---------------------------- 21 | DROP TABLE IF EXISTS `dashang`; 22 | CREATE TABLE `dashang` ( 23 | `id` int NOT NULL AUTO_INCREMENT, 24 | `name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8_unicode_ci DEFAULT NULL, 25 | `momey` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8_unicode_ci DEFAULT NULL, 26 | `thinklanger` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8_unicode_ci DEFAULT NULL, 27 | PRIMARY KEY (`id`) 28 | ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; 29 | 30 | -- ---------------------------- 31 | -- Records of dashang 32 | -- ---------------------------- 33 | -------------------------------------------------------------------------------- /novelaibt/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 4.0.0 6 | 7 | org.nanjie 8 | novelaibt 9 | 1.0-SNAPSHOT 10 | 11 | 12 | 8 13 | 8 14 | 15 | 16 | spring-boot-starter-parent 17 | org.springframework.boot 18 | 2.3.3.RELEASE 19 | 20 | 21 | 22 | 23 | com.qiniu 24 | qiniu-java-sdk 25 | 7.2.2 26 | 27 | 28 | org.projectlombok 29 | lombok 30 | 1.18.12 31 | provided 32 | 33 | 39 | 40 | com.baomidou 41 | mybatis-plus-boot-starter 42 | 3.5.1 43 | 44 | 45 | 46 | com.baomidou 47 | mybatis-plus-generator 48 | 3.5.1 49 | 50 | 51 | 52 | org.apache.velocity 53 | velocity-engine-core 54 | 2.2 55 | 56 | 57 | 58 | org.springframework.boot 59 | spring-boot-starter-web 60 | 61 | 62 | com.alibaba 63 | druid 64 | 1.1.10 65 | 66 | 67 | org.springframework.boot 68 | spring-boot-starter-jdbc 69 | 70 | 71 | org.apache.commons 72 | commons-lang3 73 | 3.1 74 | 75 | 76 | com.alibaba 77 | fastjson 78 | 1.2.75 79 | 80 | 81 | 82 | org.springframework.boot 83 | spring-boot-devtools 84 | 2.2.1.RELEASE 85 | 86 | 87 | mysql 88 | mysql-connector-java 89 | 5.1.46 90 | 91 | 92 | org.springframework.boot 93 | spring-boot-starter-test 94 | test 95 | 96 | 97 | org.junit.vintage 98 | junit-vintage-engine 99 | 100 | 101 | 102 | 103 | org.projectlombok 104 | lombok 105 | 106 | 107 | 108 | 109 | 110 | org.springframework.boot 111 | spring-boot-maven-plugin 112 | 113 | 114 | 115 | -------------------------------------------------------------------------------- /novelaibt/src/main/java/com/nanjie/common/Result.java: -------------------------------------------------------------------------------- 1 | package com.nanjie.common; 2 | 3 | public class Result { 4 | private int code; 5 | private String message; 6 | private Object data; 7 | public Result(){}; 8 | public Result(int code, String message, Object data) { 9 | this.code = code; 10 | this.message = message; 11 | this.data = data; 12 | } 13 | 14 | public static Result ok(int code, String message, Object data) { 15 | Result result=new Result(code,message,data); 16 | return result; 17 | } 18 | public static Result err(int code,String message){ 19 | Result result=Result.err(code,message); 20 | return result; 21 | } 22 | public static Result Result(){ 23 | return Result(); 24 | } 25 | 26 | public int getCode() { 27 | return code; 28 | } 29 | 30 | public String getMessage() { 31 | return message; 32 | } 33 | 34 | public Object getData() { 35 | return data; 36 | } 37 | } 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /novelaibt/src/main/java/com/nanjie/common/typeListDTO.java: -------------------------------------------------------------------------------- 1 | package com.nanjie.common; 2 | 3 | import com.nanjie.entity.Typelist; 4 | import lombok.Data; 5 | 6 | import java.util.List; 7 | 8 | @Data 9 | public class typeListDTO { 10 | private String typename; 11 | private List list; 12 | private int page;//当前页 13 | } 14 | -------------------------------------------------------------------------------- /novelaibt/src/main/java/com/nanjie/config/MyBatisPlusConfig.java: -------------------------------------------------------------------------------- 1 | package com.nanjie.config; 2 | 3 | import com.baomidou.mybatisplus.annotation.DbType; 4 | import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor; 5 | import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor; 6 | import org.springframework.context.annotation.Bean; 7 | import org.springframework.context.annotation.Configuration; 8 | 9 | @Configuration 10 | public class MyBatisPlusConfig { 11 | //分页插件——新的分页插件,旧版本PaginationInterceptor失效了 12 | @Bean 13 | public MybatisPlusInterceptor mybatisPlusInterceptor() { 14 | MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor(); 15 | interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL)); 16 | return interceptor; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /novelaibt/src/main/java/com/nanjie/config/QiniuCloudUtil.java: -------------------------------------------------------------------------------- 1 | package com.nanjie.config; 2 | 3 | import java.io.IOException; 4 | import java.util.HashSet; 5 | import java.util.Set; 6 | import java.util.regex.Matcher; 7 | import java.util.regex.Pattern; 8 | 9 | import com.qiniu.common.QiniuException; 10 | import com.qiniu.common.Zone; 11 | import com.qiniu.http.Response; 12 | import com.qiniu.storage.BucketManager; 13 | import com.qiniu.storage.Configuration; 14 | import com.qiniu.storage.UploadManager; 15 | import com.qiniu.util.Auth; 16 | import com.qiniu.util.Base64; 17 | import com.qiniu.util.StringMap; 18 | import com.qiniu.util.UrlSafeBase64; 19 | 20 | import okhttp3.OkHttpClient; 21 | import okhttp3.Request; 22 | import okhttp3.RequestBody; 23 | 24 | public class QiniuCloudUtil { 25 | 26 | // 设置需要操作的账号的AK和SK 27 | private static final String ACCESS_KEY = "qqJ8sTmXU4E9jFhmUQXeasc2jHuEN22BmVXfOvRZ"; 28 | private static final String SECRET_KEY = "4iqB8Y9H0-Y8M94TOptfEorU35iLNarbA-5l5FRW"; 29 | 30 | // 要上传的空间 31 | private static final String bucketname = "shangnanjie"; 32 | 33 | // 密钥 34 | private static final Auth auth = Auth.create(ACCESS_KEY, SECRET_KEY); 35 | 36 | private static final String DOMAIN = "giao.tomxlysplay.com.cn"; 37 | 38 | private static final String style = "imageView2/0/q/75"; 39 | 40 | public String getUpToken() { 41 | return auth.uploadToken(bucketname, null, 3600, new StringMap().put("insertOnly", 1)); 42 | } 43 | // 普通上传 44 | public String uplaoad(String filePath, String fileName) throws IOException { 45 | // 创建上传对象 46 | Configuration cfg = new Configuration(Zone.zone2()); 47 | UploadManager uploadManager = new UploadManager(cfg); 48 | try { 49 | // 调用put方法上传 50 | String token = auth.uploadToken(bucketname); 51 | /*if (UtilValidate.isEmpty(token)) { 52 | System.out.println("未获取到token,请重试!"); 53 | return null; 54 | }*/ 55 | Response res = uploadManager.put(filePath, fileName, token); 56 | // 打印返回的信息 57 | System.out.println("七牛云"+res.bodyString()); 58 | if (res.isOK()) { 59 | Ret ret = res.jsonToObject(Ret.class); 60 | //如果不需要对图片进行样式处理,则使用以下方式即可 61 | //return DOMAIN + ret.key; 62 | return DOMAIN + ret.key + "?" + style; 63 | } 64 | } catch (QiniuException e) { 65 | Response r = e.response; 66 | // 请求失败时打印的异常的信息 67 | System.out.println("七牛云2"+r.toString()); 68 | try { 69 | // 响应的文本信息 70 | System.out.println("七牛云3"+r.bodyString()); 71 | } catch (QiniuException e1) { 72 | // ignore 73 | } 74 | } 75 | return null; 76 | } 77 | 78 | 79 | //base64方式上传 80 | public String put64image(byte[] base64, String key) throws Exception{ 81 | String file64 = Base64.encodeToString(base64, 0); 82 | Integer l = base64.length; 83 | String url = "http://up-z2.qiniup.com/putb64/" + l + "/key/"+ UrlSafeBase64.encodeToString(key); 84 | //非华东空间需要根据注意事项 1 修改上传域名 85 | RequestBody rb = RequestBody.create(null, file64); 86 | Request request = new Request.Builder(). 87 | url(url). 88 | addHeader("Content-Type", "application/octet-stream") 89 | .addHeader("Authorization", "UpToken " + getUpToken()) 90 | .post(rb).build(); 91 | //System.out.println(request.headers()); 92 | OkHttpClient client = new OkHttpClient(); 93 | okhttp3.Response response = client.newCall(request).execute(); 94 | System.out.println("64base七牛云"); 95 | System.out.println(response); 96 | //如果不需要添加图片样式,使用以下方式 97 | //return DOMAIN + key; 98 | return "http://"+DOMAIN +"/"+ key; 99 | } 100 | 101 | 102 | // 普通删除(暂未使用以下方法,未测试) 103 | public void delete(String key) throws IOException { 104 | // 实例化一个BucketManager对象 105 | Configuration cfg = new Configuration(Zone.zone2()); 106 | BucketManager bucketManager = new BucketManager(auth,cfg); 107 | // 此处的33是去掉:http://ongsua0j7.bkt.clouddn.com/,剩下的key就是图片在七牛云的名称 108 | key = key.substring(33); 109 | try { 110 | // 调用delete方法移动文件 111 | bucketManager.delete(bucketname, key); 112 | } catch (QiniuException e) { 113 | // 捕获异常信息 114 | Response r = e.response; 115 | System.out.println(r.toString()); 116 | } 117 | } 118 | 119 | class Ret { 120 | public long fsize; 121 | public String key; 122 | public String hash; 123 | public int width; 124 | public int height; 125 | } 126 | } 127 | -------------------------------------------------------------------------------- /novelaibt/src/main/java/com/nanjie/config/SingerPicConfig.java: -------------------------------------------------------------------------------- 1 | package com.nanjie.config;/* 2 | package com.giaomusic.config; 3 | 4 | import org.springframework.context.annotation.Configuration; 5 | import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; 6 | import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; 7 | @Configuration 8 | public class SingerPicConfig implements WebMvcConfigurer { 9 | @Override 10 | public void addResourceHandlers(ResourceHandlerRegistry registry) { 11 | registry.addResourceHandler("/img/singerPic/**").addResourceLocations( 12 | "file"+System.getProperty("user.dir")+System.getProperty("file.separator")+"img"+ 13 | System.getProperty("file.separator")+"singerPic"+System.getProperty("file.separator") 14 | 15 | ); 16 | } 17 | } 18 | */ 19 | -------------------------------------------------------------------------------- /novelaibt/src/main/java/com/nanjie/config/WebConfig.java: -------------------------------------------------------------------------------- 1 | package com.nanjie.config; 2 | 3 | import org.springframework.context.annotation.Configuration; 4 | import org.springframework.web.servlet.config.annotation.CorsRegistration; 5 | import org.springframework.web.servlet.config.annotation.CorsRegistry; 6 | import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; 7 | 8 | @Configuration 9 | public class WebConfig implements WebMvcConfigurer { 10 | // 拦截器跨域配置 11 | @Override 12 | public void addCorsMappings(CorsRegistry registry) { 13 | // 跨域路径 14 | CorsRegistration cors = registry.addMapping("/**"); 15 | 16 | // 可访问的外部域 17 | cors.allowedOrigins("*"); 18 | // 支持跨域用户凭证 19 | //cors.allowCredentials(true); 20 | //cors.allowedOriginPatterns("*"); 21 | // 设置 header 能携带的信息 22 | cors.allowedHeaders("*"); 23 | // 支持跨域的请求方法 24 | cors.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS"); 25 | // 设置跨域过期时间,单位为秒 26 | cors.maxAge(3600); 27 | } 28 | } -------------------------------------------------------------------------------- /novelaibt/src/main/java/com/nanjie/controller/AuthortagController.java: -------------------------------------------------------------------------------- 1 | package com.nanjie.controller; 2 | 3 | 4 | import com.nanjie.common.Result; 5 | import com.nanjie.entity.Authortag; 6 | import com.nanjie.mapper.AuthortagMapper; 7 | import com.nanjie.service.impl.AuthortagServiceImpl; 8 | import org.springframework.beans.factory.annotation.Autowired; 9 | import org.springframework.web.bind.annotation.RequestBody; 10 | import org.springframework.web.bind.annotation.RequestMapping; 11 | 12 | import org.springframework.web.bind.annotation.RestController; 13 | 14 | import java.util.List; 15 | 16 | /** 17 | *

18 | * 前端控制器 19 | *

20 | * 21 | * @author author 22 | * @since 2022-10-16 23 | */ 24 | @RestController 25 | @RequestMapping("/authortag") 26 | public class AuthortagController { 27 | @Autowired 28 | private AuthortagServiceImpl authortagService; 29 | @Autowired 30 | private AuthortagMapper authortagMapper; 31 | @RequestMapping("savaauthor") 32 | public Result savaauthortag(@RequestBody Authortag authortag){ 33 | System.out.println(authortag.toString()); 34 | authortag.setSamplingSteps(50); 35 | if (authortag.getNegativetag().isEmpty()){ 36 | return Result.ok(501,"tag不能为空",null); 37 | } 38 | int flag= authortagMapper.insert(authortag); 39 | return Result.ok(200,"添加成功",flag); 40 | } 41 | @RequestMapping("selecturl") 42 | public Result find_all_url(){ 43 | List list=authortagService.select_url_all(); 44 | return Result.ok(200,"返回全部url",list); 45 | } 46 | @RequestMapping("all_author") 47 | public Result find_all_author(){ 48 | List listorder=authortagService.select_all_author(); 49 | return Result.ok(200,"查询成功",listorder); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /novelaibt/src/main/java/com/nanjie/controller/DashangController.java: -------------------------------------------------------------------------------- 1 | package com.nanjie.controller; 2 | 3 | 4 | import com.nanjie.common.Result; 5 | import com.nanjie.mapper.DashangMapper; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.web.bind.annotation.RequestMapping; 8 | 9 | import org.springframework.web.bind.annotation.RestController; 10 | 11 | /** 12 | *

13 | * 前端控制器 14 | *

15 | * 16 | * @author author 17 | * @since 2022-10-23 18 | */ 19 | @RestController 20 | @RequestMapping("/dashang") 21 | public class DashangController { 22 | @Autowired 23 | private DashangMapper dashangMapper; 24 | @RequestMapping("all_dasahng") 25 | public Result selectdasahnga(){ 26 | return Result.ok(200,"ok",dashangMapper.selectList(null)); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /novelaibt/src/main/java/com/nanjie/controller/TotaltypeController.java: -------------------------------------------------------------------------------- 1 | package com.nanjie.controller; 2 | 3 | 4 | import com.nanjie.common.Result; 5 | import com.nanjie.entity.Totaltype; 6 | import com.nanjie.mapper.TotaltypeMapper; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.web.bind.annotation.RequestMapping; 9 | 10 | import org.springframework.web.bind.annotation.RestController; 11 | 12 | import java.util.List; 13 | 14 | /** 15 | *

16 | * 前端控制器 17 | *

18 | * 19 | * @author author 20 | * @since 2022-10-14 21 | */ 22 | @RestController 23 | @RequestMapping("/totaltype") 24 | public class TotaltypeController { 25 | 26 | @Autowired 27 | private TotaltypeMapper totaltypeMapper; 28 | @RequestMapping("findalltotaltype") 29 | public Result findalltotaltype(){ 30 | List list=totaltypeMapper.selectList(null); 31 | return Result.ok(200,"查询成功",list); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /novelaibt/src/main/java/com/nanjie/controller/TypelistController.java: -------------------------------------------------------------------------------- 1 | package com.nanjie.controller; 2 | 3 | 4 | import com.baomidou.mybatisplus.core.conditions.Wrapper; 5 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; 6 | import com.baomidou.mybatisplus.core.toolkit.StringUtils; 7 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; 8 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; 9 | import com.nanjie.common.Result; 10 | import com.nanjie.common.typeListDTO; 11 | import com.nanjie.entity.Totaltype; 12 | import com.nanjie.entity.Typelist; 13 | import com.nanjie.entity.vo.typeList_vo; 14 | import com.nanjie.mapper.TypelistMapper; 15 | import com.nanjie.service.impl.TypelistServiceImpl; 16 | import org.springframework.beans.factory.annotation.Autowired; 17 | import org.springframework.web.bind.annotation.*; 18 | 19 | import java.util.List; 20 | 21 | /** 22 | *

23 | * 前端控制器 24 | *

25 | * 26 | * @author author 27 | * @since 2022-10-14 28 | */ 29 | @RestController 30 | @RequestMapping("/typelist") 31 | public class TypelistController { 32 | @Autowired 33 | private TypelistMapper typelistMapper; 34 | @Autowired 35 | private TypelistServiceImpl typelistService; 36 | @RequestMapping("fidalltypelist") 37 | public Result fidalltypelist(){ 38 | List list =typelistMapper.selectList(null); 39 | return Result.ok(200,"查询成功",list); 40 | } 41 | @RequestMapping("byidtypelist/{id}") 42 | public Result find_Byid_typelist(@PathVariable("id") int id){ 43 | List list=typelistService.select_byId_typelist(id); 44 | return Result.ok(200,"查询成功",list); 45 | } 46 | @RequestMapping("find_byname") 47 | public Result find_typename(@RequestBody typeListDTO typeListdto){ 48 | List list= typelistService.select_byname__typelist(typeListdto.getTypename()); 49 | return Result.ok(200,"list",list); 50 | } 51 | //返回分页信息 52 | @RequestMapping("get_count") 53 | public Result select_count(String name){ 54 | return Result.ok(200,"查询分页成功",typelistService.select_typelist_count(name)); 55 | } 56 | //返回模糊查询切分页的所有内容 57 | @RequestMapping("typelist_page_name") 58 | public Result find_page_list_byname(@RequestBody typeList_vo vo){ 59 | /* System.out.println(vo); 60 | int page=(vo.getVal()-1)*15; 61 | vo.setPage(page); 62 | vo.setMaxlimitl(15);*/ 63 | LambdaQueryWrapper wrapper= Wrappers.lambdaQuery(); 64 | 65 | if (StringUtils.isNotBlank(vo.getName())){ 66 | wrapper.like(Typelist::getChinesename,vo.getName()); 67 | } 68 | Page list=typelistMapper.selectPage(new Page<>(vo.getVal(),15),wrapper); 69 | return Result.ok(200,"查询",list); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /novelaibt/src/main/java/com/nanjie/controller/typeimageController.java: -------------------------------------------------------------------------------- 1 | package com.nanjie.controller; 2 | 3 | import com.nanjie.common.Result; 4 | import com.nanjie.config.QiniuCloudUtil; 5 | import com.qiniu.common.Zone; 6 | import com.qiniu.http.Response; 7 | import com.qiniu.storage.Configuration; 8 | import com.qiniu.storage.UploadManager; 9 | import com.qiniu.util.Auth; 10 | import org.springframework.web.bind.annotation.*; 11 | import org.springframework.web.multipart.MultipartFile; 12 | 13 | import javax.servlet.http.HttpServletRequest; 14 | import java.io.File; 15 | import java.io.IOException; 16 | import java.util.UUID; 17 | @RestController 18 | public class typeimageController { 19 | @ResponseBody 20 | @RequestMapping(value = "/uploadImg", method = RequestMethod.POST) 21 | public Result uploadImg(@RequestParam MultipartFile image, HttpServletRequest request) throws IOException { 22 | //1:密钥,这里写问们上面的密钥 23 | final String AK = ""; 24 | final String SK = ""; 25 | //2:指定工作空间,也就我我们上面创建的存储空间 26 | final String BUCKET = "shangnanjie"; 27 | byte[] bytes = image.getBytes(); 28 | Auth auth =Auth.create(AK,SK); 29 | String token = auth.uploadToken(BUCKET); 30 | //指定大区 31 | Configuration cfg = new Configuration(Zone.zone2()); 32 | //我们需要上传的文件的地址 33 | //上传的文件的名称 34 | String name = UUID.randomUUID().toString(); 35 | //进行图片的上传 36 | UploadManager uploadManager = new UploadManager(cfg); 37 | Response response= uploadManager.put(bytes,name,token); 38 | System.out.println(response); 39 | return Result.ok(200,"上传更改","http://giao.tomxlysplay.com.cn/"+name); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /novelaibt/src/main/java/com/nanjie/entity/Authortag.java: -------------------------------------------------------------------------------- 1 | package com.nanjie.entity; 2 | 3 | import com.baomidou.mybatisplus.annotation.TableField; 4 | import com.baomidou.mybatisplus.annotation.TableName; 5 | import com.baomidou.mybatisplus.annotation.IdType; 6 | import com.baomidou.mybatisplus.annotation.TableId; 7 | import java.io.Serializable; 8 | import lombok.Data; 9 | import lombok.EqualsAndHashCode; 10 | import lombok.experimental.Accessors; 11 | 12 | /** 13 | *

14 | * 15 | *

16 | * 17 | * @author author 18 | * @since 2022-10-16 19 | */ 20 | @Data 21 | @EqualsAndHashCode(callSuper = false) 22 | @Accessors(chain = true) 23 | @TableName("authortag") 24 | public class Authortag implements Serializable { 25 | 26 | private static final long serialVersionUID = 1L; 27 | 28 | @TableId(value = "id", type = IdType.AUTO) 29 | private Integer id; 30 | 31 | @TableField("author") 32 | private String author; 33 | 34 | @TableField("url") 35 | private String url; 36 | 37 | @TableField("tag") 38 | private String tag; 39 | 40 | @TableField("negativetag") 41 | private String negativetag; 42 | 43 | @TableField("SamplingSteps") 44 | private Integer SamplingSteps; 45 | 46 | 47 | } 48 | -------------------------------------------------------------------------------- /novelaibt/src/main/java/com/nanjie/entity/Dashang.java: -------------------------------------------------------------------------------- 1 | package com.nanjie.entity; 2 | 3 | import com.baomidou.mybatisplus.annotation.TableName; 4 | 5 | import java.io.Serializable; 6 | 7 | import lombok.Data; 8 | import lombok.EqualsAndHashCode; 9 | import lombok.experimental.Accessors; 10 | 11 | /** 12 | *

13 | * 14 | *

15 | * 16 | * @author author 17 | * @since 2022-10-23 18 | */ 19 | @Data 20 | @EqualsAndHashCode(callSuper = false) 21 | @Accessors(chain = true) 22 | @TableName("dashang") 23 | public class Dashang implements Serializable { 24 | 25 | private static final long serialVersionUID = 1L; 26 | 27 | private Integer id; 28 | 29 | private String name; 30 | 31 | private String momey; 32 | 33 | private String thinklanger; 34 | 35 | 36 | } 37 | -------------------------------------------------------------------------------- /novelaibt/src/main/java/com/nanjie/entity/Totaltype.java: -------------------------------------------------------------------------------- 1 | package com.nanjie.entity; 2 | 3 | import com.baomidou.mybatisplus.annotation.TableField; 4 | import com.baomidou.mybatisplus.annotation.TableName; 5 | import com.baomidou.mybatisplus.annotation.IdType; 6 | import com.baomidou.mybatisplus.annotation.TableId; 7 | import java.io.Serializable; 8 | 9 | import lombok.Data; 10 | import lombok.EqualsAndHashCode; 11 | import lombok.experimental.Accessors; 12 | 13 | /** 14 | *

15 | * 16 | *

17 | * 18 | * @author author 19 | * @since 2022-10-14 20 | */ 21 | @Data 22 | @EqualsAndHashCode(callSuper = false) 23 | @Accessors(chain = true) 24 | @TableName("totaltype") 25 | 26 | public class Totaltype implements Serializable { 27 | 28 | private static final long serialVersionUID = 1L; 29 | 30 | @TableId(value = "id", type = IdType.AUTO) 31 | private Integer id; 32 | 33 | 34 | @TableField("tagList") 35 | private String tagList; 36 | 37 | 38 | } 39 | -------------------------------------------------------------------------------- /novelaibt/src/main/java/com/nanjie/entity/Typelist.java: -------------------------------------------------------------------------------- 1 | package com.nanjie.entity; 2 | 3 | import com.baomidou.mybatisplus.annotation.TableField; 4 | import com.baomidou.mybatisplus.annotation.TableName; 5 | import com.baomidou.mybatisplus.annotation.IdType; 6 | import com.baomidou.mybatisplus.annotation.TableId; 7 | import java.io.Serializable; 8 | 9 | import lombok.Data; 10 | import lombok.EqualsAndHashCode; 11 | import lombok.experimental.Accessors; 12 | 13 | /** 14 | *

15 | * 16 | *

17 | * 18 | * @author author 19 | * @since 2022-10-14 20 | */ 21 | @Data 22 | @EqualsAndHashCode(callSuper = false) 23 | @Accessors(chain = true) 24 | @TableName("typelist") 25 | 26 | public class Typelist implements Serializable { 27 | 28 | private static final long serialVersionUID = 1L; 29 | 30 | 31 | @TableId(value = "id", type = IdType.AUTO) 32 | private Integer id; 33 | 34 | @TableField("typeid") 35 | private Integer typeid; 36 | 37 | 38 | @TableField("typename") 39 | private String typename; 40 | 41 | 42 | @TableField("englishname") 43 | private String englishname; 44 | 45 | 46 | @TableField("chinesename") 47 | private String chinesename; 48 | 49 | 50 | } 51 | -------------------------------------------------------------------------------- /novelaibt/src/main/java/com/nanjie/entity/vo/typeList_vo.java: -------------------------------------------------------------------------------- 1 | package com.nanjie.entity.vo; 2 | 3 | import lombok.Data; 4 | 5 | @Data 6 | public class typeList_vo { 7 | private String name; 8 | private int val; 9 | private int page; 10 | private int maxlimitl; 11 | } 12 | -------------------------------------------------------------------------------- /novelaibt/src/main/java/com/nanjie/mapper/AuthortagMapper.java: -------------------------------------------------------------------------------- 1 | package com.nanjie.mapper; 2 | 3 | import com.nanjie.entity.Authortag; 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | *

10 | * Mapper 接口 11 | *

12 | * 13 | * @author author 14 | * @since 2022-10-16 15 | */ 16 | public interface AuthortagMapper extends BaseMapper { 17 | List selectallurl(); 18 | List select_all_authtag(); 19 | } 20 | -------------------------------------------------------------------------------- /novelaibt/src/main/java/com/nanjie/mapper/DashangMapper.java: -------------------------------------------------------------------------------- 1 | package com.nanjie.mapper; 2 | 3 | import com.nanjie.entity.Dashang; 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 5 | 6 | /** 7 | *

8 | * Mapper 接口 9 | *

10 | * 11 | * @author author 12 | * @since 2022-10-23 13 | */ 14 | public interface DashangMapper extends BaseMapper { 15 | 16 | } 17 | -------------------------------------------------------------------------------- /novelaibt/src/main/java/com/nanjie/mapper/TotaltypeMapper.java: -------------------------------------------------------------------------------- 1 | package com.nanjie.mapper; 2 | 3 | import com.nanjie.entity.Totaltype; 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 5 | 6 | /** 7 | *

8 | * Mapper 接口 9 | *

10 | * 11 | * @author author 12 | * @since 2022-10-14 13 | */ 14 | public interface TotaltypeMapper extends BaseMapper { 15 | 16 | } 17 | -------------------------------------------------------------------------------- /novelaibt/src/main/java/com/nanjie/mapper/TypelistMapper.java: -------------------------------------------------------------------------------- 1 | package com.nanjie.mapper; 2 | 3 | import com.nanjie.entity.Typelist; 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; 5 | import com.nanjie.entity.vo.typeList_vo; 6 | 7 | import java.util.List; 8 | 9 | /** 10 | *

11 | * Mapper 接口 12 | *

13 | * 14 | * @author author 15 | * @since 2022-10-14 16 | */ 17 | public interface TypelistMapper extends BaseMapper { 18 | //查询id下的类型 19 | List select_byId_typelist(int typeid); 20 | 21 | //查询固定name的 22 | List select_byName_typelist(String typename); 23 | 24 | //查询分页有多少页,且模糊查询 25 | Integer select_typeList_count(String chinesename); 26 | //模糊搜索加分页 27 | List select_limit_typelist(typeList_vo vo); 28 | } -------------------------------------------------------------------------------- /novelaibt/src/main/java/com/nanjie/novelaibtApplication.java: -------------------------------------------------------------------------------- 1 | package com.nanjie; 2 | 3 | import org.mybatis.spring.annotation.MapperScan; 4 | import org.springframework.boot.SpringApplication; 5 | import org.springframework.boot.autoconfigure.SpringBootApplication; 6 | 7 | @SpringBootApplication 8 | @MapperScan("com.nanjie.*") 9 | public class novelaibtApplication { 10 | public static void main(String[] args) { 11 | SpringApplication.run(novelaibtApplication.class,args); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /novelaibt/src/main/java/com/nanjie/service/IAuthortagService.java: -------------------------------------------------------------------------------- 1 | package com.nanjie.service; 2 | 3 | import com.nanjie.entity.Authortag; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | *

10 | * 服务类 11 | *

12 | * 13 | * @author author 14 | * @since 2022-10-16 15 | */ 16 | public interface IAuthortagService extends IService { 17 | List select_url_all(); 18 | //倒叙查询 19 | List select_all_author(); 20 | } 21 | -------------------------------------------------------------------------------- /novelaibt/src/main/java/com/nanjie/service/IDashangService.java: -------------------------------------------------------------------------------- 1 | package com.nanjie.service; 2 | 3 | import com.nanjie.entity.Dashang; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | /** 7 | *

8 | * 服务类 9 | *

10 | * 11 | * @author author 12 | * @since 2022-10-23 13 | */ 14 | public interface IDashangService extends IService { 15 | 16 | } 17 | -------------------------------------------------------------------------------- /novelaibt/src/main/java/com/nanjie/service/ITotaltypeService.java: -------------------------------------------------------------------------------- 1 | package com.nanjie.service; 2 | 3 | import com.nanjie.entity.Totaltype; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | 6 | /** 7 | *

8 | * 服务类 9 | *

10 | * 11 | * @author author 12 | * @since 2022-10-14 13 | */ 14 | public interface ITotaltypeService extends IService { 15 | 16 | } 17 | -------------------------------------------------------------------------------- /novelaibt/src/main/java/com/nanjie/service/ITypelistService.java: -------------------------------------------------------------------------------- 1 | package com.nanjie.service; 2 | 3 | import com.nanjie.entity.Typelist; 4 | import com.baomidou.mybatisplus.extension.service.IService; 5 | import com.nanjie.entity.vo.typeList_vo; 6 | 7 | import java.util.List; 8 | 9 | /** 10 | *

11 | * 服务类 12 | *

13 | * 14 | * @author author 15 | * @since 2022-10-14 16 | */ 17 | public interface ITypelistService extends IService { 18 | //查询id下的类型 19 | List select_byId_typelist(int typeid); 20 | List select_byname__typelist(String name); 21 | //搜索并分页 22 | int select_typelist_count(String name); 23 | //模糊搜索 并分页 24 | List select_litem(typeList_vo vo); 25 | } 26 | -------------------------------------------------------------------------------- /novelaibt/src/main/java/com/nanjie/service/impl/AuthortagServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.nanjie.service.impl; 2 | 3 | import com.nanjie.entity.Authortag; 4 | import com.nanjie.mapper.AuthortagMapper; 5 | import com.nanjie.service.IAuthortagService; 6 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.stereotype.Service; 9 | 10 | import java.util.List; 11 | 12 | /** 13 | *

14 | * 服务实现类 15 | *

16 | * 17 | * @author author 18 | * @since 2022-10-16 19 | */ 20 | @Service 21 | public class AuthortagServiceImpl extends ServiceImpl implements IAuthortagService { 22 | @Autowired 23 | AuthortagMapper authortagMapper; 24 | @Override 25 | public List select_url_all() { 26 | return authortagMapper.selectallurl(); 27 | } 28 | 29 | @Override 30 | public List select_all_author() { 31 | return authortagMapper.select_all_authtag(); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /novelaibt/src/main/java/com/nanjie/service/impl/DashangServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.nanjie.service.impl; 2 | 3 | import com.nanjie.entity.Dashang; 4 | import com.nanjie.mapper.DashangMapper; 5 | import com.nanjie.service.IDashangService; 6 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 7 | import org.springframework.stereotype.Service; 8 | 9 | /** 10 | *

11 | * 服务实现类 12 | *

13 | * 14 | * @author author 15 | * @since 2022-10-23 16 | */ 17 | @Service 18 | public class DashangServiceImpl extends ServiceImpl implements IDashangService { 19 | 20 | } 21 | -------------------------------------------------------------------------------- /novelaibt/src/main/java/com/nanjie/service/impl/TotaltypeServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.nanjie.service.impl; 2 | 3 | import com.nanjie.entity.Totaltype; 4 | import com.nanjie.mapper.TotaltypeMapper; 5 | import com.nanjie.service.ITotaltypeService; 6 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 7 | import org.springframework.stereotype.Service; 8 | 9 | /** 10 | *

11 | * 服务实现类 12 | *

13 | * 14 | * @author author 15 | * @since 2022-10-14 16 | */ 17 | @Service 18 | public class TotaltypeServiceImpl extends ServiceImpl implements ITotaltypeService { 19 | 20 | } 21 | -------------------------------------------------------------------------------- /novelaibt/src/main/java/com/nanjie/service/impl/TypelistServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.nanjie.service.impl; 2 | 3 | import com.nanjie.entity.Typelist; 4 | import com.nanjie.entity.vo.typeList_vo; 5 | import com.nanjie.mapper.TypelistMapper; 6 | import com.nanjie.service.ITypelistService; 7 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 8 | import org.springframework.beans.factory.annotation.Autowired; 9 | import org.springframework.stereotype.Service; 10 | 11 | import java.util.List; 12 | 13 | /** 14 | *

15 | * 服务实现类 16 | *

17 | * 18 | * @author author 19 | * @since 2022-10-14 20 | */ 21 | @Service 22 | public class TypelistServiceImpl extends ServiceImpl implements ITypelistService { 23 | @Autowired 24 | private TypelistMapper typelist; 25 | @Override 26 | public List select_byId_typelist(int typeid) { 27 | return typelist.select_byId_typelist(typeid); 28 | } 29 | 30 | @Override 31 | public List select_byname__typelist( String name) { 32 | return typelist.select_byName_typelist(name); 33 | } 34 | 35 | 36 | 37 | //查询有多少页 38 | @Override 39 | public int select_typelist_count(String name) { 40 | System.out.println("一共"+name); 41 | return typelist.select_typeList_count(name); 42 | } 43 | 44 | @Override 45 | public List select_litem(typeList_vo vo) { 46 | return typelist.select_limit_typelist(vo); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /novelaibt/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8848 3 | spring: 4 | servlet: 5 | multipart: 6 | max-file-size: 100MB 7 | max-request-size: 100MB 8 | datasource: 9 | driver-class-name: com.mysql.jdbc.Driver 10 | username: root 11 | password: 1234 12 | url: jdbc:mysql://127.0.0.1:3306/aitag 13 | type: com.alibaba.druid.pool.DruidDataSource 14 | mybatis-plus: 15 | #信息输出设置 16 | # xml地址 17 | mapper-locations: classpath:mapper/*.xml 18 | # 实体扫描,多个package用逗号或者分号分隔 19 | # type-aliases-package: *** #自己的实体类地址 20 | #上传时出现如下异常: 上传文件的大小超出默认配置 默认10M -------------------------------------------------------------------------------- /novelaibt/src/main/resources/mapper/AuthortagMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /novelaibt/src/main/resources/mapper/DashangMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /novelaibt/src/main/resources/mapper/TotaltypeMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /novelaibt/src/main/resources/mapper/TypelistMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 10 | 11 | 14 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /novelaibt/src/test/java/qiniuyun.java: -------------------------------------------------------------------------------- 1 | import com.qiniu.common.QiniuException; 2 | import com.qiniu.common.Zone; 3 | import com.qiniu.http.Response; 4 | import com.qiniu.storage.Configuration; 5 | import com.qiniu.storage.UploadManager; 6 | import com.qiniu.util.Auth; 7 | import org.junit.jupiter.api.Test; 8 | 9 | import javax.imageio.ImageIO; 10 | import java.awt.image.BufferedImage; 11 | import java.io.File; 12 | import java.io.FileOutputStream; 13 | import java.io.IOException; 14 | 15 | public class qiniuyun { 16 | public static void main(String[] args) throws QiniuException { 17 | //1:密钥,这里写问们上面的密钥 18 | final String AK = "qqJ8sTmXU4E9jFhmUQXeasc2jHuEN22BmVXfOvRZ"; 19 | final String SK = "4iqB8Y9H0-Y8M94TOptfEorU35iLNarbA-5l5FRW"; 20 | //2:指定工作空间,也就我我们上面创建的存储空间 21 | final String BUCKET = "shangnanjie"; 22 | 23 | Auth auth =Auth.create(AK,SK); 24 | String token = auth.uploadToken(BUCKET); 25 | 26 | //指定大区 27 | Configuration cfg = new Configuration(Zone.zone2()); 28 | 29 | //我们需要上传的文件的地址 30 | String local = "C:\\Users\\zhou\\Desktop\\yuanshen\\dddd.png"; 31 | //上传的文件的名称 32 | String name = "beauuty.jpg"; 33 | File file = new File(local); 34 | //进行图片的上传 35 | UploadManager uploadManager = new UploadManager(cfg); 36 | Response response= uploadManager.put(file,name,token); 37 | System.out.println(response); 38 | } 39 | 40 | @Test 41 | public void yasuo() { 42 | /* try { 43 | //图片所在路径 44 | BufferedImage templateImage = ImageIO.read(new File("D:\\google下载的文件\\image.jpeg\\1f92b6e4-8a9d-4913-8803-590577c6d537.jpeg")); 45 | 46 | 47 | //原始图片的长度和宽度 48 | int height = templateImage.getHeight(); 49 | int width = templateImage.getWidth(); 50 | 51 | //通过比例压缩 52 | float scale = 0.5f; 53 | 54 | //通过固定长度压缩 55 | *//*int doWithHeight = 100; 56 | int dowithWidth = 300;*//* 57 | 58 | //压缩之后的长度和宽度 59 | int doWithHeight = (int) (scale * height); 60 | int dowithWidth = (int) (scale * width); 61 | 62 | 63 | 64 | BufferedImage finalImage = new BufferedImage(dowithWidth, doWithHeight, BufferedImage.TYPE_INT_RGB); 65 | 66 | finalImage.getGraphics().drawImage(templateImage.getScaledInstance(dowithWidth, doWithHeight, java.awt.Image.SCALE_SMOOTH), 0, 0, null); 67 | 68 | 69 | //图片输出路径,以及图片名 70 | FileOutputStream fileOutputStream = new FileOutputStream("C:\\Users\\zhou\\Desktop\\yausohou\\1f92b6e4-8a9d-4913-8803-590577c6d537.jpeg"); 71 | JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(fileOutputStream); 72 | encoder.encode(finalImage); 73 | fileOutputStream.close(); 74 | } catch (IOException e) { 75 | e.printStackTrace(); 76 | } 77 | 78 | }*/ 79 | } 80 | @Test 81 | public void dd(){ 82 | int i = 200; 83 | int j='a'; 84 | char c=(char)(i+j); 85 | System.out.println(c); 86 | 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /novelaibt/target/classes/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8848 3 | spring: 4 | servlet: 5 | multipart: 6 | max-file-size: 100MB 7 | max-request-size: 100MB 8 | datasource: 9 | driver-class-name: com.mysql.jdbc.Driver 10 | username: root 11 | password: 1234 12 | url: jdbc:mysql://127.0.0.1:3306/aitag 13 | type: com.alibaba.druid.pool.DruidDataSource 14 | mybatis-plus: 15 | #信息输出设置 16 | # xml地址 17 | mapper-locations: classpath:mapper/*.xml 18 | # 实体扫描,多个package用逗号或者分号分隔 19 | # type-aliases-package: *** #自己的实体类地址 20 | #上传时出现如下异常: 上传文件的大小超出默认配置 默认10M -------------------------------------------------------------------------------- /novelaibt/target/classes/com/nanjie/common/Result.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaibt/target/classes/com/nanjie/common/Result.class -------------------------------------------------------------------------------- /novelaibt/target/classes/com/nanjie/common/typeListDTO.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaibt/target/classes/com/nanjie/common/typeListDTO.class -------------------------------------------------------------------------------- /novelaibt/target/classes/com/nanjie/config/MyBatisPlusConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaibt/target/classes/com/nanjie/config/MyBatisPlusConfig.class -------------------------------------------------------------------------------- /novelaibt/target/classes/com/nanjie/config/QiniuCloudUtil$Ret.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaibt/target/classes/com/nanjie/config/QiniuCloudUtil$Ret.class -------------------------------------------------------------------------------- /novelaibt/target/classes/com/nanjie/config/QiniuCloudUtil.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaibt/target/classes/com/nanjie/config/QiniuCloudUtil.class -------------------------------------------------------------------------------- /novelaibt/target/classes/com/nanjie/config/WebConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaibt/target/classes/com/nanjie/config/WebConfig.class -------------------------------------------------------------------------------- /novelaibt/target/classes/com/nanjie/controller/AuthortagController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaibt/target/classes/com/nanjie/controller/AuthortagController.class -------------------------------------------------------------------------------- /novelaibt/target/classes/com/nanjie/controller/DashangController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaibt/target/classes/com/nanjie/controller/DashangController.class -------------------------------------------------------------------------------- /novelaibt/target/classes/com/nanjie/controller/TotaltypeController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaibt/target/classes/com/nanjie/controller/TotaltypeController.class -------------------------------------------------------------------------------- /novelaibt/target/classes/com/nanjie/controller/TypelistController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaibt/target/classes/com/nanjie/controller/TypelistController.class -------------------------------------------------------------------------------- /novelaibt/target/classes/com/nanjie/controller/typeimageController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaibt/target/classes/com/nanjie/controller/typeimageController.class -------------------------------------------------------------------------------- /novelaibt/target/classes/com/nanjie/entity/Authortag.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaibt/target/classes/com/nanjie/entity/Authortag.class -------------------------------------------------------------------------------- /novelaibt/target/classes/com/nanjie/entity/Dashang.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaibt/target/classes/com/nanjie/entity/Dashang.class -------------------------------------------------------------------------------- /novelaibt/target/classes/com/nanjie/entity/Totaltype.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaibt/target/classes/com/nanjie/entity/Totaltype.class -------------------------------------------------------------------------------- /novelaibt/target/classes/com/nanjie/entity/Typelist.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaibt/target/classes/com/nanjie/entity/Typelist.class -------------------------------------------------------------------------------- /novelaibt/target/classes/com/nanjie/entity/vo/typeList_vo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaibt/target/classes/com/nanjie/entity/vo/typeList_vo.class -------------------------------------------------------------------------------- /novelaibt/target/classes/com/nanjie/mapper/AuthortagMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaibt/target/classes/com/nanjie/mapper/AuthortagMapper.class -------------------------------------------------------------------------------- /novelaibt/target/classes/com/nanjie/mapper/DashangMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaibt/target/classes/com/nanjie/mapper/DashangMapper.class -------------------------------------------------------------------------------- /novelaibt/target/classes/com/nanjie/mapper/TotaltypeMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaibt/target/classes/com/nanjie/mapper/TotaltypeMapper.class -------------------------------------------------------------------------------- /novelaibt/target/classes/com/nanjie/mapper/TypelistMapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaibt/target/classes/com/nanjie/mapper/TypelistMapper.class -------------------------------------------------------------------------------- /novelaibt/target/classes/com/nanjie/novelaibtApplication.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaibt/target/classes/com/nanjie/novelaibtApplication.class -------------------------------------------------------------------------------- /novelaibt/target/classes/com/nanjie/service/IAuthortagService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaibt/target/classes/com/nanjie/service/IAuthortagService.class -------------------------------------------------------------------------------- /novelaibt/target/classes/com/nanjie/service/IDashangService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaibt/target/classes/com/nanjie/service/IDashangService.class -------------------------------------------------------------------------------- /novelaibt/target/classes/com/nanjie/service/ITotaltypeService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaibt/target/classes/com/nanjie/service/ITotaltypeService.class -------------------------------------------------------------------------------- /novelaibt/target/classes/com/nanjie/service/ITypelistService.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaibt/target/classes/com/nanjie/service/ITypelistService.class -------------------------------------------------------------------------------- /novelaibt/target/classes/com/nanjie/service/impl/AuthortagServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaibt/target/classes/com/nanjie/service/impl/AuthortagServiceImpl.class -------------------------------------------------------------------------------- /novelaibt/target/classes/com/nanjie/service/impl/DashangServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaibt/target/classes/com/nanjie/service/impl/DashangServiceImpl.class -------------------------------------------------------------------------------- /novelaibt/target/classes/com/nanjie/service/impl/TotaltypeServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaibt/target/classes/com/nanjie/service/impl/TotaltypeServiceImpl.class -------------------------------------------------------------------------------- /novelaibt/target/classes/com/nanjie/service/impl/TypelistServiceImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaibt/target/classes/com/nanjie/service/impl/TypelistServiceImpl.class -------------------------------------------------------------------------------- /novelaibt/target/classes/mapper/AuthortagMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /novelaibt/target/classes/mapper/DashangMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /novelaibt/target/classes/mapper/TotaltypeMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /novelaibt/target/classes/mapper/TypelistMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 10 | 11 | 14 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /novelaibt/target/maven-archiver/pom.properties: -------------------------------------------------------------------------------- 1 | artifactId=novelaibt 2 | groupId=org.nanjie 3 | version=1.0-SNAPSHOT 4 | -------------------------------------------------------------------------------- /novelaibt/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaibt/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst -------------------------------------------------------------------------------- /novelaibt/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst: -------------------------------------------------------------------------------- 1 | E:\RuoYi-master\novelaibt\src\main\java\com\nanjie\config\MyBatisPlusConfig.java 2 | E:\RuoYi-master\novelaibt\src\main\java\com\nanjie\novelaibtApplication.java 3 | E:\RuoYi-master\novelaibt\src\main\java\com\nanjie\service\ITotaltypeService.java 4 | E:\RuoYi-master\novelaibt\src\main\java\com\nanjie\mapper\TotaltypeMapper.java 5 | E:\RuoYi-master\novelaibt\src\main\java\com\nanjie\service\impl\TypelistServiceImpl.java 6 | E:\RuoYi-master\novelaibt\src\main\java\com\nanjie\config\WebConfig.java 7 | E:\RuoYi-master\novelaibt\src\main\java\com\nanjie\entity\Totaltype.java 8 | E:\RuoYi-master\novelaibt\src\main\java\com\nanjie\controller\TotaltypeController.java 9 | E:\RuoYi-master\novelaibt\src\main\java\com\nanjie\common\Result.java 10 | E:\RuoYi-master\novelaibt\src\main\java\com\nanjie\controller\TypelistController.java 11 | E:\RuoYi-master\novelaibt\src\main\java\com\nanjie\mapper\TypelistMapper.java 12 | E:\RuoYi-master\novelaibt\src\main\java\com\nanjie\service\ITypelistService.java 13 | E:\RuoYi-master\novelaibt\src\main\java\com\nanjie\config\SingerPicConfig.java 14 | E:\RuoYi-master\novelaibt\src\main\java\com\nanjie\service\impl\TotaltypeServiceImpl.java 15 | E:\RuoYi-master\novelaibt\src\main\java\com\nanjie\entity\Typelist.java 16 | -------------------------------------------------------------------------------- /novelaibt/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaibt/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst -------------------------------------------------------------------------------- /novelaibt/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaibt/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst -------------------------------------------------------------------------------- /novelaibt/totaltype.sql: -------------------------------------------------------------------------------- 1 | /* 2 | Navicat MySQL Data Transfer 3 | 4 | Source Server : mysql 5 | Source Server Version : 80029 6 | Source Host : localhost:3306 7 | Source Database : aitag 8 | 9 | Target Server Type : MYSQL 10 | Target Server Version : 80029 11 | File Encoding : 65001 12 | 13 | Date: 2022-11-02 09:25:24 14 | */ 15 | 16 | SET FOREIGN_KEY_CHECKS=0; 17 | 18 | -- ---------------------------- 19 | -- Table structure for totaltype 20 | -- ---------------------------- 21 | DROP TABLE IF EXISTS `totaltype`; 22 | CREATE TABLE `totaltype` ( 23 | `id` int NOT NULL AUTO_INCREMENT COMMENT '总类型id', 24 | `tagList` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '总类型', 25 | PRIMARY KEY (`id`) 26 | ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; 27 | 28 | -- ---------------------------- 29 | -- Records of totaltype 30 | -- ---------------------------- 31 | INSERT INTO `totaltype` VALUES ('1', '人物样貌'); 32 | INSERT INTO `totaltype` VALUES ('2', '服装类型'); 33 | INSERT INTO `totaltype` VALUES ('3', '人物画风'); 34 | INSERT INTO `totaltype` VALUES ('4', '环境样式'); 35 | -------------------------------------------------------------------------------- /novelaimage/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 4.0.0 6 | 7 | com.nanjie 8 | nolaaiimage 9 | 1.0-SNAPSHOT 10 | 11 | 12 | 8 13 | 8 14 | 15 | 16 | spring-boot-starter-parent 17 | org.springframework.boot 18 | 2.3.3.RELEASE 19 | 20 | 21 | 22 | org.projectlombok 23 | lombok 24 | 1.18.12 25 | provided 26 | 27 | 28 | org.apache.velocity 29 | velocity-engine-core 30 | 2.2 31 | 32 | 33 | org.springframework.boot 34 | spring-boot-starter-web 35 | 36 | 37 | 38 | org.apache.commons 39 | commons-lang3 40 | 3.1 41 | 42 | 43 | org.springframework.boot 44 | spring-boot-devtools 45 | 2.2.1.RELEASE 46 | 47 | 48 | org.springframework.boot 49 | spring-boot-starter-test 50 | test 51 | 52 | 53 | org.junit.vintage 54 | junit-vintage-engine 55 | 56 | 57 | 58 | 59 | org.projectlombok 60 | lombok 61 | 62 | 63 | 64 | 65 | 66 | org.springframework.boot 67 | spring-boot-maven-plugin 68 | 69 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /novelaimage/src/main/java/com/nanjie/common/Result.java: -------------------------------------------------------------------------------- 1 | package com.nanjie.common; 2 | 3 | public class Result { 4 | private int code; 5 | private String message; 6 | private Object data; 7 | public Result(){}; 8 | public Result(int code, String message, Object data) { 9 | this.code = code; 10 | this.message = message; 11 | this.data = data; 12 | } 13 | 14 | public static Result ok(int code, String message, Object data) { 15 | Result result=new Result(code,message,data); 16 | return result; 17 | } 18 | public static Result err(int code,String message){ 19 | Result result=Result.err(code,message); 20 | return result; 21 | } 22 | public static Result Result(){ 23 | return Result(); 24 | } 25 | 26 | public int getCode() { 27 | return code; 28 | } 29 | 30 | public String getMessage() { 31 | return message; 32 | } 33 | 34 | public Object getData() { 35 | return data; 36 | } 37 | } 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /novelaimage/src/main/java/com/nanjie/common/WebConfig.java: -------------------------------------------------------------------------------- 1 | package com.nanjie.common; 2 | 3 | import org.springframework.context.annotation.Configuration; 4 | import org.springframework.web.servlet.config.annotation.CorsRegistration; 5 | import org.springframework.web.servlet.config.annotation.CorsRegistry; 6 | import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; 7 | 8 | @Configuration 9 | public class WebConfig implements WebMvcConfigurer { 10 | // 拦截器跨域配置 11 | @Override 12 | public void addCorsMappings(CorsRegistry registry) { 13 | // 跨域路径 14 | CorsRegistration cors = registry.addMapping("/**"); 15 | 16 | // 可访问的外部域 17 | cors.allowedOrigins("*"); 18 | // 支持跨域用户凭证 19 | //cors.allowCredentials(true); 20 | //cors.allowedOriginPatterns("*"); 21 | // 设置 header 能携带的信息 22 | cors.allowedHeaders("*"); 23 | // 支持跨域的请求方法 24 | cors.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS"); 25 | // 设置跨域过期时间,单位为秒 26 | cors.maxAge(3600); 27 | } 28 | } -------------------------------------------------------------------------------- /novelaimage/src/main/java/com/nanjie/controller/imageController.java: -------------------------------------------------------------------------------- 1 | package com.nanjie.controller; 2 | 3 | 4 | import com.nanjie.common.Result; 5 | import org.apache.tomcat.util.http.fileupload.IOUtils; 6 | import org.springframework.beans.factory.annotation.Value; 7 | import org.springframework.web.bind.annotation.*; 8 | import org.springframework.web.multipart.MultipartFile; 9 | 10 | import javax.imageio.ImageIO; 11 | import javax.servlet.ServletOutputStream; 12 | import javax.servlet.http.HttpServletRequest; 13 | import javax.servlet.http.HttpServletResponse; 14 | import java.awt.image.BufferedImage; 15 | import java.io.*; 16 | import java.net.URLEncoder; 17 | import java.util.UUID; 18 | 19 | @RestController 20 | public class imageController { 21 | @Value("${file.image.path}") 22 | private String imagePath; 23 | @Value("${file.image.pathsamll}") 24 | private String imagesamll; 25 | private String httppath="http://localhost:4431/down/"; 26 | private String httspath="http://tomxlysplay.com.cn:4431/down/"; 27 | @RequestMapping(value = "/uploadImg", method = RequestMethod.POST) 28 | public Result uploadImg(MultipartFile image, HttpServletRequest request) throws IOException { 29 | if (image.isEmpty()){ 30 | return Result.ok(201,"上传图片为空",null); 31 | } 32 | 33 | String filename= UUID.randomUUID().toString()+".jpeg"; 34 | image.transferTo(new File(imagePath,filename)); 35 | System.out.println("文件上传成功路径为"+imagePath); 36 | //图片压缩 37 | try { 38 | //图片所在路径 39 | BufferedImage templateImage = ImageIO.read(new File(imagePath+"/"+filename)); 40 | //原始图片的长度和宽度 41 | int height = templateImage.getHeight(); 42 | int width = templateImage.getWidth(); 43 | //通过比例压缩 44 | float scale = 0.5f; 45 | //通过固定长度压缩 46 | /*int doWithHeight = 100; 47 | int dowithWidth = 300;*/ 48 | //压缩之后的长度和宽度 49 | int doWithHeight = (int) (scale * height); 50 | int dowithWidth = (int) (scale * width); 51 | BufferedImage finalImage = new BufferedImage(dowithWidth, doWithHeight, BufferedImage.TYPE_INT_RGB); 52 | finalImage.getGraphics().drawImage(templateImage.getScaledInstance(dowithWidth, doWithHeight, java.awt.Image.SCALE_SMOOTH), 0, 0, null); 53 | //上谜案是处理过后的图片 54 | 55 | //图片输出路径,以及图片名 56 | FileOutputStream fileOutputStream = new FileOutputStream(imagesamll+"/"+filename); 57 | 58 | ImageIO.write(finalImage,"jpeg",fileOutputStream); 59 | /* JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(fileOutputStream); 60 | encoder.encode(finalImage); 61 | fileOutputStream.close();*/ 62 | } catch (IOException e) { 63 | e.printStackTrace(); 64 | } 65 | return Result.ok(200,"图片上传成功",httspath+filename); 66 | } 67 | @RequestMapping("/down/{filename}") 68 | public void downimage(@PathVariable String filename, HttpServletRequest request, HttpServletResponse response) throws IOException { 69 | FileInputStream is = new FileInputStream(new File(imagesamll, filename)); 70 | ServletOutputStream os = response.getOutputStream(); 71 | IOUtils.copy(is,os); 72 | IOUtils.closeQuietly(is); 73 | IOUtils.closeQuietly(os); 74 | } 75 | @RequestMapping("/downbig/{filename}") 76 | public void downbigimage(@PathVariable String filename, HttpServletRequest request, HttpServletResponse response) throws IOException { 77 | FileInputStream is = new FileInputStream(new File(imagePath, filename)); 78 | ServletOutputStream os = response.getOutputStream(); 79 | response.setHeader("content-disposition","attachment;fileName="+ URLEncoder.encode(filename,"UTF-8")); 80 | IOUtils.copy(is,os); 81 | IOUtils.closeQuietly(is); 82 | IOUtils.closeQuietly(os); 83 | } 84 | } 85 | -------------------------------------------------------------------------------- /novelaimage/src/main/java/com/nanjie/novelaimageApplication.java: -------------------------------------------------------------------------------- 1 | package com.nanjie; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | @SpringBootApplication 6 | public class novelaimageApplication { 7 | public static void main(String[] args) { 8 | SpringApplication.run(novelaimageApplication.class,args); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /novelaimage/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 4431 3 | spring: 4 | servlet: 5 | multipart: 6 | max-file-size: 100MB 7 | max-request-size: 100MB 8 | file: 9 | image: 10 | path: /home/java/image 11 | path2: E:\nolaAitage词条\image 12 | pathsamll: /home/java/imagesamll 13 | -------------------------------------------------------------------------------- /novelaimage/src/test/java/image.java: -------------------------------------------------------------------------------- 1 | 2 | 3 | import org.junit.jupiter.api.Test; 4 | 5 | import javax.imageio.ImageIO; 6 | import java.awt.image.BufferedImage; 7 | import java.io.File; 8 | import java.io.FileOutputStream; 9 | import java.io.IOException; 10 | import java.util.List; 11 | 12 | public class image { 13 | public static void main(String[] args) { 14 | File f=new File("D:\\google下载的文件"); 15 | String[] list = f.list(); 16 | for (String s : list) { 17 | File imagename=new File("D:\\google下载的文件\\"+s); 18 | System.out.println(imagename.getName()+"获取名字"); 19 | // imagename.renameTo(new File(imagename+".jpeg")); 20 | System.out.println(s); 21 | } 22 | 23 | } 24 | public static void ceshi(String name){ 25 | try { 26 | //图片所在路径 27 | BufferedImage templateImage = ImageIO.read(new File("D:\\google下载的文件\\image_RSmGHM\\image\\"+name)); 28 | //原始图片的长度和宽度 29 | System.out.println("当前文件为"+name); 30 | int height = templateImage.getHeight(); 31 | int width = templateImage.getWidth(); 32 | 33 | //通过比例压缩 34 | float scale = 0.5f; 35 | //通过固定长度压缩 36 | /*int doWithHeight = 100; 37 | int dowithWidth = 300;*/ 38 | //压缩之后的长度和宽度 39 | int doWithHeight = (int) (scale * height); 40 | int dowithWidth = (int) (scale * width); 41 | BufferedImage finalImage = new BufferedImage(dowithWidth, doWithHeight, BufferedImage.TYPE_INT_RGB); 42 | 43 | finalImage.getGraphics().drawImage(templateImage.getScaledInstance(dowithWidth, doWithHeight, java.awt.Image.SCALE_SMOOTH), 0, 0, null); 44 | 45 | 46 | //图片输出路径,以及图片名 47 | FileOutputStream fileOutputStream = new FileOutputStream("C:\\Users\\zhou\\Desktop\\yausohou\\"+name); 48 | ImageIO.write(finalImage,"jpeg",fileOutputStream);; 49 | fileOutputStream.close(); 50 | } catch (IOException e) { 51 | e.printStackTrace(); 52 | }catch (NullPointerException e){ 53 | return; 54 | } 55 | 56 | } 57 | @Test 58 | public void dddd(){ 59 | File file=new File("D:\\google下载的文件\\image_RSmGHM\\image"); 60 | for (String s:file.list() 61 | ) { 62 | image.ceshi(s); 63 | System.out.println(s); 64 | } 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /novelaimage/target/classes/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 4431 3 | spring: 4 | servlet: 5 | multipart: 6 | max-file-size: 100MB 7 | max-request-size: 100MB 8 | file: 9 | image: 10 | path: /home/java/image 11 | path2: E:\nolaAitage词条\image 12 | pathsamll: /home/java/imagesamll 13 | -------------------------------------------------------------------------------- /novelaimage/target/classes/com/nanjie/common/Result.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaimage/target/classes/com/nanjie/common/Result.class -------------------------------------------------------------------------------- /novelaimage/target/classes/com/nanjie/common/WebConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaimage/target/classes/com/nanjie/common/WebConfig.class -------------------------------------------------------------------------------- /novelaimage/target/classes/com/nanjie/controller/imageController.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaimage/target/classes/com/nanjie/controller/imageController.class -------------------------------------------------------------------------------- /novelaimage/target/classes/com/nanjie/novelaimageApplication.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaimage/target/classes/com/nanjie/novelaimageApplication.class -------------------------------------------------------------------------------- /novelaimage/target/maven-archiver/pom.properties: -------------------------------------------------------------------------------- 1 | artifactId=nolaaiimage 2 | groupId=com.nanjie 3 | version=1.0-SNAPSHOT 4 | -------------------------------------------------------------------------------- /novelaimage/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaimage/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst -------------------------------------------------------------------------------- /novelaimage/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst: -------------------------------------------------------------------------------- 1 | E:\RuoYi-master\nolaaiimage\src\main\java\com\nanjie\common\Result.java 2 | E:\RuoYi-master\nolaaiimage\src\main\java\com\nanjie\common\WebConfig.java 3 | E:\RuoYi-master\nolaaiimage\src\main\java\com\nanjie\nolaaiimageApplication.java 4 | E:\RuoYi-master\nolaaiimage\src\main\java\com\nanjie\controller\imageController.java 5 | -------------------------------------------------------------------------------- /novelaimage/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaimage/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst -------------------------------------------------------------------------------- /novelaimage/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaimage/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst -------------------------------------------------------------------------------- /novelaimage/target/nolaaiimage-1.0-SNAPSHOT.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaimage/target/nolaaiimage-1.0-SNAPSHOT.jar -------------------------------------------------------------------------------- /novelaimage/target/nolaaiimage-1.0-SNAPSHOT.jar.original: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaimage/target/nolaaiimage-1.0-SNAPSHOT.jar.original -------------------------------------------------------------------------------- /novelaimage/target/test-classes/image.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaimage/target/test-classes/image.class -------------------------------------------------------------------------------- /novelaitag/README.md: -------------------------------------------------------------------------------- 1 | # novelaitag 2 | 3 | ## Project setup 4 | ``` 5 | npm install 6 | ``` 7 | 8 | ### Compiles and hot-reloads for development 9 | ``` 10 | npm run serve 11 | ``` 12 | 13 | ### Compiles and minifies for production 14 | ``` 15 | npm run build 16 | ``` 17 | 18 | ### Lints and fixes files 19 | ``` 20 | npm run lint 21 | ``` 22 | 23 | ### Customize configuration 24 | See [Configuration Reference](https://cli.vuejs.org/config/). 25 | -------------------------------------------------------------------------------- /novelaitag/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | '@vue/cli-plugin-babel/preset' 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /novelaitag/jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es5", 4 | "module": "esnext", 5 | "baseUrl": "./", 6 | "moduleResolution": "node", 7 | "paths": { 8 | "@/*": [ 9 | "src/*" 10 | ] 11 | }, 12 | "lib": [ 13 | "esnext", 14 | "dom", 15 | "dom.iterable", 16 | "scripthost" 17 | ] 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /novelaitag/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "novelaitag", 3 | "version": "0.1.0", 4 | "private": true, 5 | "scripts": { 6 | "serve": "vue-cli-service serve", 7 | "build": "vue-cli-service build", 8 | "lint": "vue-cli-service lint" 9 | }, 10 | "dependencies": { 11 | "core-js": "^3.8.3", 12 | "element-ui": "^2.4.5", 13 | "vue": "^2.6.14", 14 | "vue-router": "^3.5.1" 15 | }, 16 | "devDependencies": { 17 | "@babel/core": "^7.12.16", 18 | "@babel/eslint-parser": "^7.12.16", 19 | "@vue/cli-plugin-babel": "~5.0.0", 20 | "@vue/cli-plugin-eslint": "~5.0.0", 21 | "@vue/cli-plugin-router": "~4.5.0", 22 | "@vue/cli-service": "^5.0.8", 23 | "axios": "^0.18.0", 24 | "eslint": "^7.32.0", 25 | "eslint-plugin-vue": "^8.0.3", 26 | "vue-cli-plugin-axios": "^0.0.4", 27 | "vue-cli-plugin-element": "^1.0.1", 28 | "vue-template-compiler": "^2.6.14" 29 | }, 30 | "eslintConfig": { 31 | "root": true, 32 | "env": { 33 | "node": true 34 | }, 35 | "extends": [ 36 | "plugin:vue/essential", 37 | "eslint:recommended" 38 | ], 39 | "parserOptions": { 40 | "parser": "@babel/eslint-parser" 41 | }, 42 | "rules": { 43 | "generator-star-spacing": "off", 44 | "no-tabs": "off", 45 | "no-unused-vars": "off", 46 | "no-console": "off", 47 | "no-irregular-whitespace": "off", 48 | "no-debugger": "off" 49 | } 50 | }, 51 | "browserslist": [ 52 | "> 1%", 53 | "last 2 versions", 54 | "not dead" 55 | ] 56 | } 57 | -------------------------------------------------------------------------------- /novelaitag/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaitag/public/favicon.ico -------------------------------------------------------------------------------- /novelaitag/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 鳖哲法典 11 | 12 | 13 | 16 |
17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /novelaitag/src/App.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 10 | 11 | 14 | -------------------------------------------------------------------------------- /novelaitag/src/assets/maomao.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaitag/src/assets/maomao.jpg -------------------------------------------------------------------------------- /novelaitag/src/assets/weixing.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Chuchuwen9637/noveaitag/9ef11b0264a05e62b123420addf09c09faf5ab58/novelaitag/src/assets/weixing.jpg -------------------------------------------------------------------------------- /novelaitag/src/components/Home.vue: -------------------------------------------------------------------------------- 1 | 124 | 254 | -------------------------------------------------------------------------------- /novelaitag/src/components/addtag.vue: -------------------------------------------------------------------------------- 1 | 34 | 35 | 144 | -------------------------------------------------------------------------------- /novelaitag/src/components/giveupmoney.vue: -------------------------------------------------------------------------------- 1 | 13 | -------------------------------------------------------------------------------- /novelaitag/src/components/okimge.vue: -------------------------------------------------------------------------------- 1 | 52 | 144 | 202 | -------------------------------------------------------------------------------- /novelaitag/src/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import './plugins/axios' 3 | import App from './App.vue' 4 | import router from './router' 5 | import './plugins/element.js' 6 | 7 | Vue.config.productionTip = false 8 | 9 | new Vue({ 10 | router, 11 | render: h => h(App) 12 | }).$mount('#app') 13 | -------------------------------------------------------------------------------- /novelaitag/src/plugins/axios.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | import Vue from 'vue'; 4 | import axios from "axios"; 5 | 6 | // Full config: https://github.com/axios/axios#request-config 7 | //axios.defaults.baseURL = process.env.baseURL || process.env.apiUrl || ''; 8 | // axios.defaults.headers.common['Authorization'] = AUTH_TOKEN; 9 | // axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded'; 10 | 11 | let config = { 12 | baseURL: 'http://127.0.0.1:8848/', 13 | //baseURL: 'http://175.178.51.244:8848/', 14 | // timeout: 60 * 1000, // Timeout 15 | // withCredentials: true, // Check cross-site Access-Control 16 | 17 | }; 18 | 19 | const _axios = axios.create(config); 20 | 21 | _axios.interceptors.request.use( 22 | function(config) { 23 | // Do something before request is sent 24 | return config; 25 | }, 26 | function(error) { 27 | // Do something with request error 28 | return Promise.reject(error); 29 | } 30 | ); 31 | 32 | // Add a response interceptor 33 | _axios.interceptors.response.use( 34 | function(response) { 35 | // Do something with response data 36 | return response; 37 | }, 38 | function(error) { 39 | // Do something with response error 40 | return Promise.reject(error); 41 | } 42 | ); 43 | 44 | Plugin.install = function(Vue, options) { 45 | Vue.axios = _axios; 46 | window.axios = _axios; 47 | Object.defineProperties(Vue.prototype, { 48 | axios: { 49 | get() { 50 | return _axios; 51 | } 52 | }, 53 | $axios: { 54 | get() { 55 | return _axios; 56 | } 57 | }, 58 | }); 59 | }; 60 | 61 | Vue.use(Plugin) 62 | 63 | export default Plugin; 64 | -------------------------------------------------------------------------------- /novelaitag/src/plugins/element.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import Element from 'element-ui' 3 | import 'element-ui/lib/theme-chalk/index.css' 4 | 5 | Vue.use(Element) 6 | -------------------------------------------------------------------------------- /novelaitag/src/router/index.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import VueRouter from 'vue-router' 3 | import Home from '../components/Home.vue' 4 | import okimg from '../components/okimge.vue' 5 | Vue.use(VueRouter) 6 | 7 | const routes = [ 8 | { 9 | path: '/', 10 | name: 'home', 11 | component: Home, 12 | }, 13 | 14 | ] 15 | 16 | const router = new VueRouter({ 17 | routes 18 | }) 19 | 20 | export default router 21 | -------------------------------------------------------------------------------- /novelaitag/vue.config.js: -------------------------------------------------------------------------------- 1 | const { defineConfig } = require('@vue/cli-service') 2 | module.exports = defineConfig({ 3 | publicPath:"./", 4 | outputDir:"dist", 5 | indexPath:"index.html", 6 | transpileDependencies: true, 7 | lintOnSave: false  8 | }) 9 | --------------------------------------------------------------------------------