rename com.imyeyu.server to com.imyeyu.api

This commit is contained in:
Timi
2025-07-22 15:26:14 +08:00
parent e816b885b2
commit 323e038e86
340 changed files with 1174 additions and 1175 deletions
+2 -2
View File
@@ -4,7 +4,7 @@
<charset>UTF-8</charset>
<pattern>[%d{HH:mm:ss.SSS}][%-5level][%-54logger{54}] %msg%n</pattern>
</encoder>
<filter class="com.imyeyu.server.modules.system.util.LoggerFilter" />
<filter class="com.imyeyu.api.modules.system.util.LoggerFilter" />
</appender>
<appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>./logs/debug.log</file>
@@ -16,7 +16,7 @@
<fileNamePattern>./logs/debug/debug.%d{yyyy-MM-dd}.log</fileNamePattern>
<maxHistory>30</maxHistory>
</rollingPolicy>
<filter class="com.imyeyu.server.modules.system.util.LoggerFilter" />
<filter class="com.imyeyu.api.modules.system.util.LoggerFilter" />
</appender>
<root level="info">
<appender-ref ref="file" />
@@ -1,6 +1,6 @@
<?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.imyeyu.server.modules.blog.mapper.ArticleMapper">
<mapper namespace="com.imyeyu.api.modules.blog.mapper.ArticleMapper">
<sql id="table">article</sql>
<!-- 查询列表的文章字段 -->
<sql id="listColumn">
@@ -24,7 +24,7 @@
<select id="count" resultType="long">
SELECT COUNT(1) <include refid="normalCondition" />
</select>
<select id="list" resultType="com.imyeyu.server.modules.blog.entity.Article">
<select id="list" resultType="com.imyeyu.api.modules.blog.entity.Article">
SELECT
<include refid="listColumn" />
<include refid="normalCondition" />
@@ -44,7 +44,7 @@
<select id="countByKeyword" resultType="long">
SELECT COUNT(1) <include refid="byKeywordCondition" />
</select>
<select id="selectByKeyword" resultType="com.imyeyu.server.modules.blog.entity.Article">
<select id="selectByKeyword" resultType="com.imyeyu.api.modules.blog.entity.Article">
SELECT
<include refid="listColumn" />
<include refid="byKeywordCondition" />
@@ -1,8 +1,8 @@
<?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.imyeyu.server.modules.common.mapper.AttachmentMapper">
<mapper namespace="com.imyeyu.api.modules.common.mapper.AttachmentMapper">
<sql id="table">attachment</sql>
<select id="listByAttachType" resultType="com.imyeyu.server.modules.common.entity.Attachment">
<select id="listByAttachType" resultType="com.imyeyu.api.modules.common.entity.Attachment">
SELECT
*
FROM
@@ -1,6 +1,6 @@
<?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.imyeyu.server.modules.common.mapper.CommentMapper">
<mapper namespace="com.imyeyu.api.modules.common.mapper.CommentMapper">
<sql id="table">comment</sql>
<!-- 主评论 -->
<select id="list" resultMap="listResult">
@@ -77,7 +77,7 @@
ON
reply_count.id = comment.id
</select>
<resultMap id="listResult" type="com.imyeyu.server.modules.common.vo.comment.CommentView">
<resultMap id="listResult" type="com.imyeyu.api.modules.common.vo.comment.CommentView">
<id property="id" column="id" />
<result property="userId" column="user_id" />
<result property="nick" column="nick" />
@@ -85,7 +85,7 @@
<result property="repliesLength" column="reply_length" />
<result property="createdAt" column="created_at" />
<!-- 关联回复 -->
<collection property="replies" ofType="com.imyeyu.server.modules.common.vo.comment.CommentReplyView">
<collection property="replies" ofType="com.imyeyu.api.modules.common.vo.comment.CommentReplyView">
<id property="id" column="reply_id" />
<result property="commentId" column="comment_id" />
<result property="senderId" column="sender_id" />
@@ -127,7 +127,7 @@
<select id="countByUserId" resultType="long">
SELECT COUNT(1) <include refid="byUserIdCondition" />
</select>
<select id="listByUserId" resultType="com.imyeyu.server.modules.common.vo.comment.CommentView">
<select id="listByUserId" resultType="com.imyeyu.api.modules.common.vo.comment.CommentView">
SELECT
id,
biz_type,
@@ -1,6 +1,6 @@
<?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.imyeyu.server.modules.common.mapper.IconMapper">
<mapper namespace="com.imyeyu.api.modules.common.mapper.IconMapper">
<sql id="table">icon</sql>
<!-- 根据标签获取部分 -->
<sql id="byLabel">
@@ -29,7 +29,7 @@
<select id="countByLabel" resultType="long">
SELECT COUNT(1) <include refid="byLabel" />
</select>
<select id="listByLabel" resultType="com.imyeyu.server.modules.common.entity.Icon">
<select id="listByLabel" resultType="com.imyeyu.api.modules.common.entity.Icon">
SELECT icon.* <include refid="byLabel" /> LIMIT #{offset}, #{limit}
</select>
</mapper>
@@ -1,7 +1,7 @@
<?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.imyeyu.server.modules.common.mapper.MultilingualMapper">
<select id="selectByKeyList" resultType="com.imyeyu.server.modules.common.entity.Multilingual">
<mapper namespace="com.imyeyu.api.modules.common.mapper.MultilingualMapper">
<select id="selectByKeyList" resultType="com.imyeyu.api.modules.common.entity.Multilingual">
SELECT * FROM multilingual WHERE key IN
<foreach collection='keys' item='item' open='(' separator=',' close=')'>
#{item}
@@ -1,6 +1,6 @@
<?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.imyeyu.server.modules.common.mapper.SettingMapper">
<mapper namespace="com.imyeyu.api.modules.common.mapper.SettingMapper">
<sql id="table">setting</sql>
<select id="listByKeys">
SELECT
@@ -1,6 +1,6 @@
<?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.imyeyu.server.modules.common.mapper.TaskMapper">
<mapper namespace="com.imyeyu.api.modules.common.mapper.TaskMapper">
<!-- 所有公开任务 -->
<select id="listAll4Public" resultMap="findAll4PublicResult">
SELECT
@@ -38,13 +38,13 @@
is_public = 1
AND deleted_at IS NULL
</select>
<resultMap id="findAll4PublicResult" type="com.imyeyu.server.modules.common.entity.Task">
<resultMap id="findAll4PublicResult" type="com.imyeyu.api.modules.common.entity.Task">
<id property="id" column="id"/>
<result property="name" column="name"/>
<result property="digest" column="digest"/>
<result property="status" column="status"/>
<!-- 关联任务 -->
<collection property="details" ofType="com.imyeyu.server.modules.common.entity.TaskDetail">
<collection property="details" ofType="com.imyeyu.api.modules.common.entity.TaskDetail">
<id property="id" column="detial_id"/>
<result property="bizType" column="bizType"/>
<result property="status" column="tdStatus"/>
@@ -1,5 +1,5 @@
<?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.imyeyu.server.modules.common.mapper.UserConfigMapper">
<mapper namespace="com.imyeyu.api.modules.common.mapper.UserConfigMapper">
<sql id="table">user_config</sql>
</mapper>
@@ -1,4 +1,4 @@
<?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.imyeyu.server.modules.common.mapper.UserPrivacyMapper">
<mapper namespace="com.imyeyu.api.modules.common.mapper.UserPrivacyMapper">
</mapper>
@@ -1,5 +1,5 @@
<?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.imyeyu.server.modules.common.mapper.UserProfileMapper">
<mapper namespace="com.imyeyu.api.modules.common.mapper.UserProfileMapper">
<sql id="table">user_profile</sql>
</mapper>
@@ -1,6 +1,6 @@
<?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.imyeyu.server.modules.git.mapper.IssueMapper">
<mapper namespace="com.imyeyu.api.modules.git.mapper.IssueMapper">
<sql id="table">git_issue</sql>
<sql id="pageCondition">
repository_id = #{issuePage.repositoryId}
@@ -21,7 +21,7 @@
<select id="countByIssuePage" resultType="long">
SELECT COUNT(1) FROM <include refid="table" /> WHERE <include refid="pageCondition" />
</select>
<select id="listByIssuePage" resultType="com.imyeyu.server.modules.git.entity.Issue">
<select id="listByIssuePage" resultType="com.imyeyu.api.modules.git.entity.Issue">
SELECT
id,
title,
@@ -1,6 +1,6 @@
<?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.imyeyu.server.modules.git.mapper.MergeMapper">
<mapper namespace="com.imyeyu.api.modules.git.mapper.MergeMapper">
<sql id="table">git_merge</sql>
<sql id="pageCondition">
repository_id = #{mergePage.repositoryId}
@@ -21,7 +21,7 @@
<select id="countByMergePage" resultType="long">
SELECT COUNT(1) FROM <include refid="table" /> WHERE <include refid="pageCondition" />
</select>
<select id="listByMergePage" resultType="com.imyeyu.server.modules.git.entity.Merge">
<select id="listByMergePage" resultType="com.imyeyu.api.modules.git.entity.Merge">
SELECT
id,
title,
@@ -1,6 +1,6 @@
<?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.imyeyu.server.modules.git.mapper.ReleaseMapper">
<mapper namespace="com.imyeyu.api.modules.git.mapper.ReleaseMapper">
<sql id="table">git_release</sql>
<select id="listByRepositoryId" resultMap="listByRepositoryIdResult">
SELECT
@@ -28,10 +28,10 @@
LIMIT
#{offset}, #{limit}
</select>
<resultMap id="listByRepositoryIdResult" type="com.imyeyu.server.modules.git.vo.release.ReleaseView" autoMapping="true">
<resultMap id="listByRepositoryIdResult" type="com.imyeyu.api.modules.git.vo.release.ReleaseView" autoMapping="true">
<id property="id" column="id" />
<!-- 关联附件 -->
<collection property="attachmentList" ofType="com.imyeyu.server.modules.common.vo.attachment.AttachmentView">
<collection property="attachmentList" ofType="com.imyeyu.api.modules.common.vo.attachment.AttachmentView">
<id property="id" column="attachmentId" />
<result property="bizType" column="biz_type" />
<result property="bizId" column="biz_id" />
@@ -1,6 +1,6 @@
<?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.imyeyu.server.modules.gitea.mapper.ActionMapper">
<mapper namespace="com.imyeyu.api.modules.gitea.mapper.ActionMapper">
<select id="count" resultType="long">
SELECT
COUNT(*)
@@ -18,7 +18,7 @@
AND action.op_type = #{operation.value}
</if>
</select>
<select id="list" resultType="com.imyeyu.server.modules.gitea.bean.ActionLogDTO">
<select id="list" resultType="com.imyeyu.api.modules.gitea.bean.ActionLogDTO">
SELECT
repository.id AS repo_id,
repository.name AS repo_name,
@@ -1,6 +1,6 @@
<?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.imyeyu.server.modules.minecraft.mapper.PackMapper">
<mapper namespace="com.imyeyu.api.modules.minecraft.mapper.PackMapper">
<!-- 获取 -->
<select id="listPacks" resultMap="listPacksResult">
SELECT
@@ -21,9 +21,9 @@
ORDER BY
pack.is_deprecated, pack.created_at DESC, source.order ASC
</select>
<resultMap id="listPacksResult" type="com.imyeyu.server.modules.minecraft.entity.MinecraftPack" autoMapping="true">
<resultMap id="listPacksResult" type="com.imyeyu.api.modules.minecraft.entity.MinecraftPack" autoMapping="true">
<id property="id" column="id" />
<collection property="sourceList" ofType="com.imyeyu.server.modules.minecraft.entity.MinecraftPackSource" autoMapping="false">
<collection property="sourceList" ofType="com.imyeyu.api.modules.minecraft.entity.MinecraftPackSource" autoMapping="false">
<result property="name" column="sourceName" />
<result property="type" column="sourceType" />
<result property="data" column="sourceData" />
@@ -1,4 +1,4 @@
<?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.imyeyu.server.modules.minecraft.mapper.PlayerMapper">
<mapper namespace="com.imyeyu.api.modules.minecraft.mapper.PlayerMapper">
</mapper>
@@ -1,6 +1,6 @@
<?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.imyeyu.server.modules.system.mapper.AsyncTaskMapper">
<mapper namespace="com.imyeyu.api.modules.system.mapper.AsyncTaskMapper">
<sql id="table">async_task</sql>
<insert id="insert">
INSERT INTO <include refid="table" /> (
@@ -37,7 +37,7 @@
#{createdAt}
)
</insert>
<update id="update" parameterType="com.imyeyu.server.modules.system.entity.AsyncTask">
<update id="update" parameterType="com.imyeyu.api.modules.system.entity.AsyncTask">
UPDATE
<include refid="table" />
SET