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

View File

@@ -0,0 +1,34 @@
package com.imyeyu.api.bean;
/**
* 验证码来源
*
* @author 夜雨
* @since 2023-07-16 10:12
*/
public enum CaptchaFrom {
/** 注册 */
REGISTER,
/** 登录 */
LOGIN,
/** 忘记密码 */
RESET_PASSWORD,
/** 评论 */
COMMENT,
/** 评论回复 */
COMMENT_REPLY,
/** Git 反馈 */
GIT_ISSUE,
/** Git 合并请求 */
GIT_MERGE,
/** 歌词修正申请 */
LYRIC_CORRECT
}

View File

@@ -0,0 +1,18 @@
package com.imyeyu.api.bean;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
import org.yaml.snakeyaml.Yaml;
/**
* @author 夜雨
* @since 2025-01-13 11:42
*/
@Component
public class IOCBeans {
@Bean
public Yaml yaml() {
return new Yaml();
}
}

View File

@@ -0,0 +1,26 @@
package com.imyeyu.api.bean;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @author 夜雨
* @since 2023-10-25 10:10
*/
public interface MultilingualHandler {
/**
*
*
* @author 夜雨
* @since 2023-10-25 10:25
*/
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@interface MultilingualField {
String[] args() default {};
}
}

View File

@@ -0,0 +1,30 @@
package com.imyeyu.api.bean;
import lombok.Data;
import com.imyeyu.utils.OS;
import java.io.InputStream;
/**
* 资源文件
*
* @author 夜雨
* @since 2021-07-31 15:31
*/
@Data
public class ResourceFile implements OS.FileSystem {
/** 服务器文件所在路径 */
private String path;
/** 文件名 */
private String name;
/** 文件数据流 */
private InputStream inputStream;
/** @return 完整绝对路径 */
public String getFullPath() {
return path + SEP + name;
}
}