10 changed files with 158 additions and 1 deletions
@ -0,0 +1,14 @@ |
|||||
|
package com.bnyer.img.controller; |
||||
|
|
||||
|
import com.bnyer.common.core.web.controller.BaseController; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
@Api(value = "【图文平台】图片标签接口",tags = "【图文平台】图片标签接口") |
||||
|
@RestController |
||||
|
@RequestMapping("/img/sign") |
||||
|
@Slf4j |
||||
|
public class SignService extends BaseController { |
||||
|
} |
||||
@ -0,0 +1,41 @@ |
|||||
|
package com.bnyer.img.domain; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.IdType; |
||||
|
import com.baomidou.mybatisplus.annotation.TableField; |
||||
|
import com.baomidou.mybatisplus.annotation.TableId; |
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.*; |
||||
|
|
||||
|
@ApiModel(value="com-bnyer-img-domain-ImgSignRelation") |
||||
|
@Getter |
||||
|
@Setter |
||||
|
@ToString |
||||
|
@AllArgsConstructor |
||||
|
@NoArgsConstructor |
||||
|
@TableName(value = "img_img_sign_relation") |
||||
|
public class ImgSignRelation extends BaseDomain { |
||||
|
/** |
||||
|
* 主键id |
||||
|
*/ |
||||
|
@TableId(value = "id", type = IdType.INPUT) |
||||
|
@ApiModelProperty(value="主键id") |
||||
|
private Long id; |
||||
|
|
||||
|
/** |
||||
|
* 图片id |
||||
|
*/ |
||||
|
@TableField(value = "img_id") |
||||
|
@ApiModelProperty(value="图片id") |
||||
|
private Long imgId; |
||||
|
|
||||
|
/** |
||||
|
* 标签id |
||||
|
*/ |
||||
|
@TableField(value = "sign_id") |
||||
|
@ApiModelProperty(value="标签id") |
||||
|
private Long signId; |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
} |
||||
@ -0,0 +1,34 @@ |
|||||
|
package com.bnyer.img.domain; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.IdType; |
||||
|
import com.baomidou.mybatisplus.annotation.TableField; |
||||
|
import com.baomidou.mybatisplus.annotation.TableId; |
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.*; |
||||
|
|
||||
|
@ApiModel(value="com-bnyer-img-domain-Sign") |
||||
|
@Getter |
||||
|
@Setter |
||||
|
@ToString |
||||
|
@AllArgsConstructor |
||||
|
@NoArgsConstructor |
||||
|
@TableName(value = "img_sign") |
||||
|
public class Sign extends BaseDomain{ |
||||
|
/** |
||||
|
* 主键id |
||||
|
*/ |
||||
|
@TableId(value = "id", type = IdType.AUTO) |
||||
|
@ApiModelProperty(value="主键id") |
||||
|
private Long id; |
||||
|
|
||||
|
/** |
||||
|
* 标签名称 |
||||
|
*/ |
||||
|
@TableField(value = "name") |
||||
|
@ApiModelProperty(value="标签名称") |
||||
|
private String name; |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
} |
||||
@ -0,0 +1,9 @@ |
|||||
|
package com.bnyer.img.mapper; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import com.bnyer.img.domain.ImgSignRelation; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
|
||||
|
@Mapper |
||||
|
public interface ImgSignRelationMapper extends BaseMapper<ImgSignRelation> { |
||||
|
} |
||||
@ -0,0 +1,9 @@ |
|||||
|
package com.bnyer.img.mapper; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import com.bnyer.img.domain.Sign; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
|
||||
|
@Mapper |
||||
|
public interface SignMapper extends BaseMapper<Sign> { |
||||
|
} |
||||
@ -0,0 +1,4 @@ |
|||||
|
package com.bnyer.img.service; |
||||
|
|
||||
|
public interface SignService { |
||||
|
} |
||||
@ -0,0 +1,10 @@ |
|||||
|
package com.bnyer.img.service.impl; |
||||
|
|
||||
|
import com.bnyer.img.service.SignService; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
@Service |
||||
|
@Slf4j |
||||
|
public class SignServiceImpl implements SignService { |
||||
|
} |
||||
@ -0,0 +1,19 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.bnyer.img.mapper.ImgSignRelationMapper"> |
||||
|
<resultMap id="BaseResultMap" type="com.bnyer.img.domain.ImgSignRelation"> |
||||
|
<!--@mbg.generated--> |
||||
|
<!--@Table img_img_sign_relation--> |
||||
|
<id column="id" jdbcType="BIGINT" property="id" /> |
||||
|
<result column="img_id" jdbcType="BIGINT" property="imgId" /> |
||||
|
<result column="sign_id" jdbcType="BIGINT" property="signId" /> |
||||
|
<result column="is_show" jdbcType="CHAR" property="isShow" /> |
||||
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
||||
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
||||
|
<result column="sort" jdbcType="INTEGER" property="sort" /> |
||||
|
</resultMap> |
||||
|
<sql id="Base_Column_List"> |
||||
|
<!--@mbg.generated--> |
||||
|
id, img_id, sign_id, is_show, create_time, update_time, sort |
||||
|
</sql> |
||||
|
</mapper> |
||||
@ -0,0 +1,18 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.bnyer.img.mapper.SignMapper"> |
||||
|
<resultMap id="BaseResultMap" type="com.bnyer.img.domain.Sign"> |
||||
|
<!--@mbg.generated--> |
||||
|
<!--@Table img_sign--> |
||||
|
<id column="id" jdbcType="BIGINT" property="id" /> |
||||
|
<result column="name" jdbcType="VARCHAR" property="name" /> |
||||
|
<result column="is_show" jdbcType="CHAR" property="isShow" /> |
||||
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
||||
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
||||
|
<result column="sort" jdbcType="INTEGER" property="sort" /> |
||||
|
</resultMap> |
||||
|
<sql id="Base_Column_List"> |
||||
|
<!--@mbg.generated--> |
||||
|
id, `name`, is_show, create_time, update_time, sort |
||||
|
</sql> |
||||
|
</mapper> |
||||
Loading…
Reference in new issue