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 | List13 | * 前端控制器 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 | List23 | * 前端控制器 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 | List14 | * 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 BaseMapper8 | * Mapper 接口 9 | *
10 | * 11 | * @author author 12 | * @since 2022-10-23 13 | */ 14 | public interface DashangMapper extends BaseMapper8 | * Mapper 接口 9 | *
10 | * 11 | * @author author 12 | * @since 2022-10-14 13 | */ 14 | public interface TotaltypeMapper extends BaseMapper11 | * Mapper 接口 12 | *
13 | * 14 | * @author author 15 | * @since 2022-10-14 16 | */ 17 | public interface TypelistMapper extends BaseMapper10 | * 服务类 11 | *
12 | * 13 | * @author author 14 | * @since 2022-10-16 15 | */ 16 | public interface IAuthortagService extends IService8 | * 服务类 9 | *
10 | * 11 | * @author author 12 | * @since 2022-10-23 13 | */ 14 | public interface IDashangService extends IService8 | * 服务类 9 | *
10 | * 11 | * @author author 12 | * @since 2022-10-14 13 | */ 14 | public interface ITotaltypeService extends IService11 | * 服务类 12 | *
13 | * 14 | * @author author 15 | * @since 2022-10-14 16 | */ 17 | public interface ITypelistService extends IService14 | * 服务实现类 15 | *
16 | * 17 | * @author author 18 | * @since 2022-10-16 19 | */ 20 | @Service 21 | public class AuthortagServiceImpl extends ServiceImpl11 | * 服务实现类 12 | *
13 | * 14 | * @author author 15 | * @since 2022-10-23 16 | */ 17 | @Service 18 | public class DashangServiceImpl extends ServiceImpl11 | * 服务实现类 12 | *
13 | * 14 | * @author author 15 | * @since 2022-10-14 16 | */ 17 | @Service 18 | public class TotaltypeServiceImpl extends ServiceImpl15 | * 服务实现类 16 | *
17 | * 18 | * @author author 19 | * @since 2022-10-14 20 | */ 21 | @Service 22 | public class TypelistServiceImpl extends ServiceImpl