Files
keyboard_backend/src/main/resources/mapper/KeyboardProductItemsMapper.xml
ziin 2e16183cb8 feat(product): 新增键盘商品管理模块
新增商品实体、Mapper、Service、Controller 及 VO,支持商品列表、详情、订阅等接口;同步更新 Sa-Token 放行路径与 .gitignore
2025-12-12 14:15:30 +08:00

26 lines
1.5 KiB
XML

<?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.yolo.keyborad.mapper.KeyboardProductItemsMapper">
<resultMap id="BaseResultMap" type="com.yolo.keyborad.model.entity.KeyboardProductItems">
<!--@mbg.generated-->
<!--@Table keyboard_product_items-->
<id column="id" jdbcType="BIGINT" property="id" />
<result column="product_id" jdbcType="VARCHAR" property="productId" />
<result column="type" jdbcType="VARCHAR" property="type" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="unit" jdbcType="VARCHAR" property="unit" />
<result column="duration_value" jdbcType="INTEGER" property="durationValue" />
<result column="duration_unit" jdbcType="VARCHAR" property="durationUnit" />
<result column="price" jdbcType="NUMERIC" property="price" />
<result column="currency" jdbcType="VARCHAR" property="currency" />
<result column="description" jdbcType="VARCHAR" property="description" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
<result column="duration_days" jdbcType="INTEGER" property="durationDays" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, product_id, "type", "name", unit, duration_value, duration_unit, price, currency,
description, created_at, updated_at, duration_days
</sql>
</mapper>