Compare commits
2 Commits
f512e5022e
...
e76b44dc0c
Author | SHA1 | Date |
---|---|---|
|
e76b44dc0c | 5 months ago |
|
796cea7c57 | 5 months ago |
@ -0,0 +1,16 @@
|
|||||||
|
package com.pjilisense.flxai.dao;
|
||||||
|
|
||||||
|
import com.pjilisense.flxai.base.dao.BaseDao;
|
||||||
|
import com.pjilisense.flxai.entity.AppAiModelEntity;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* AI模型表
|
||||||
|
*
|
||||||
|
* @author liushujing liushujing@philisense.com
|
||||||
|
* @since 1.0.0 2024-12-20
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface AppAiModelDao extends BaseDao<AppAiModelEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.pjilisense.flxai.dao;
|
||||||
|
|
||||||
|
import com.pjilisense.flxai.base.dao.BaseDao;
|
||||||
|
import com.pjilisense.flxai.entity.AppAiPluginEntity;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* AI插件表
|
||||||
|
*
|
||||||
|
* @author liushujing liushujing@philisense.com
|
||||||
|
* @since 1.0.0 2024-12-20
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface AppAiPluginDao extends BaseDao<AppAiPluginEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,71 @@
|
|||||||
|
package com.pjilisense.flxai.dto;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* AI模型表
|
||||||
|
*
|
||||||
|
* @author liushujing liushujing@philisense.com
|
||||||
|
* @since 1.0.0 2024-12-20
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ApiModel(value = "AI模型表")
|
||||||
|
public class AppAiModelDTO implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "标识")
|
||||||
|
private String identifier;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "提供者")
|
||||||
|
private String providers;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "转换")
|
||||||
|
private String conversations;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "likes")
|
||||||
|
private String likes;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "tokens")
|
||||||
|
private String tokens;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "描述")
|
||||||
|
private String description;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "名称")
|
||||||
|
private String displayname;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "是否允许")
|
||||||
|
private String enabled;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "MetaID")
|
||||||
|
private String metaId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "meta tokens")
|
||||||
|
private String metaTokens;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "分类")
|
||||||
|
private String category;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "标题")
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "建议")
|
||||||
|
private String suggestions;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "创建时间")
|
||||||
|
private String createdAt;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "用户ID")
|
||||||
|
private String userid;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,65 @@
|
|||||||
|
package com.pjilisense.flxai.dto;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* AI插件表
|
||||||
|
*
|
||||||
|
* @author liushujing liushujing@philisense.com
|
||||||
|
* @since 1.0.0 2024-12-20
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ApiModel(value = "AI插件表")
|
||||||
|
public class AppAiPluginDTO implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "作者")
|
||||||
|
private String author;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "创建时间")
|
||||||
|
private String createdAt;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "主页地址")
|
||||||
|
private String homepage;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "标识")
|
||||||
|
private String identifier;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "locale")
|
||||||
|
private String locale;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "manifest")
|
||||||
|
private String manifest;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "avatar")
|
||||||
|
private String avatar;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "标签")
|
||||||
|
private String tags;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "标题")
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "描述")
|
||||||
|
private String description;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "分类")
|
||||||
|
private String category;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "Version")
|
||||||
|
private String schemaVersion;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "用户ID")
|
||||||
|
private String userid;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,82 @@
|
|||||||
|
package com.pjilisense.flxai.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* AI模型表
|
||||||
|
*
|
||||||
|
* @author liushujing liushujing@philisense.com
|
||||||
|
* @since 1.0.0 2024-12-20
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("app_ai_model")
|
||||||
|
public class AppAiModelEntity {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
private String id;
|
||||||
|
/**
|
||||||
|
* 标识
|
||||||
|
*/
|
||||||
|
private String identifier;
|
||||||
|
/**
|
||||||
|
* 提供者
|
||||||
|
*/
|
||||||
|
private String providers;
|
||||||
|
/**
|
||||||
|
* 转换
|
||||||
|
*/
|
||||||
|
private String conversations;
|
||||||
|
/**
|
||||||
|
* likes
|
||||||
|
*/
|
||||||
|
private String likes;
|
||||||
|
/**
|
||||||
|
* tokens
|
||||||
|
*/
|
||||||
|
private String tokens;
|
||||||
|
/**
|
||||||
|
* 描述
|
||||||
|
*/
|
||||||
|
private String description;
|
||||||
|
/**
|
||||||
|
* 名称
|
||||||
|
*/
|
||||||
|
private String displayname;
|
||||||
|
/**
|
||||||
|
* 是否允许
|
||||||
|
*/
|
||||||
|
private String enabled;
|
||||||
|
/**
|
||||||
|
* MetaID
|
||||||
|
*/
|
||||||
|
private String metaId;
|
||||||
|
/**
|
||||||
|
* meta tokens
|
||||||
|
*/
|
||||||
|
private String metaTokens;
|
||||||
|
/**
|
||||||
|
* 分类
|
||||||
|
*/
|
||||||
|
private String category;
|
||||||
|
/**
|
||||||
|
* 标题
|
||||||
|
*/
|
||||||
|
private String title;
|
||||||
|
/**
|
||||||
|
* 建议
|
||||||
|
*/
|
||||||
|
private String suggestions;
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
private String createdAt;
|
||||||
|
/**
|
||||||
|
* 用户ID
|
||||||
|
*/
|
||||||
|
private String userid;
|
||||||
|
}
|
@ -0,0 +1,74 @@
|
|||||||
|
package com.pjilisense.flxai.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* AI插件表
|
||||||
|
*
|
||||||
|
* @author liushujing liushujing@philisense.com
|
||||||
|
* @since 1.0.0 2024-12-20
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("app_ai_plugin")
|
||||||
|
public class AppAiPluginEntity {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
private String id;
|
||||||
|
/**
|
||||||
|
* 作者
|
||||||
|
*/
|
||||||
|
private String author;
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
private String createdAt;
|
||||||
|
/**
|
||||||
|
* 主页地址
|
||||||
|
*/
|
||||||
|
private String homepage;
|
||||||
|
/**
|
||||||
|
* 标识
|
||||||
|
*/
|
||||||
|
private String identifier;
|
||||||
|
/**
|
||||||
|
* locale
|
||||||
|
*/
|
||||||
|
private String locale;
|
||||||
|
/**
|
||||||
|
* manifest
|
||||||
|
*/
|
||||||
|
private String manifest;
|
||||||
|
/**
|
||||||
|
* avatar
|
||||||
|
*/
|
||||||
|
private String avatar;
|
||||||
|
/**
|
||||||
|
* 标签
|
||||||
|
*/
|
||||||
|
private String tags;
|
||||||
|
/**
|
||||||
|
* 标题
|
||||||
|
*/
|
||||||
|
private String title;
|
||||||
|
/**
|
||||||
|
* 描述
|
||||||
|
*/
|
||||||
|
private String description;
|
||||||
|
/**
|
||||||
|
* 分类
|
||||||
|
*/
|
||||||
|
private String category;
|
||||||
|
/**
|
||||||
|
* Version
|
||||||
|
*/
|
||||||
|
private String schemaVersion;
|
||||||
|
/**
|
||||||
|
* 用户ID
|
||||||
|
*/
|
||||||
|
private String userid;
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
package com.pjilisense.flxai.service;
|
||||||
|
|
||||||
|
import com.pjilisense.flxai.base.service.CrudService;
|
||||||
|
import com.pjilisense.flxai.dto.AppAiModelDTO;
|
||||||
|
import com.pjilisense.flxai.entity.AppAiModelEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* AI模型表
|
||||||
|
*
|
||||||
|
* @author liushujing liushujing@philisense.com
|
||||||
|
* @since 1.0.0 2024-12-20
|
||||||
|
*/
|
||||||
|
public interface AppAiModelService extends CrudService<AppAiModelEntity, AppAiModelDTO> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
package com.pjilisense.flxai.service;
|
||||||
|
|
||||||
|
import com.pjilisense.flxai.base.service.CrudService;
|
||||||
|
import com.pjilisense.flxai.dto.AppAiPluginDTO;
|
||||||
|
import com.pjilisense.flxai.entity.AppAiPluginEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* AI插件表
|
||||||
|
*
|
||||||
|
* @author liushujing liushujing@philisense.com
|
||||||
|
* @since 1.0.0 2024-12-20
|
||||||
|
*/
|
||||||
|
public interface AppAiPluginService extends CrudService<AppAiPluginEntity, AppAiPluginDTO> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,34 @@
|
|||||||
|
package com.pjilisense.flxai.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.pjilisense.flxai.base.service.impl.CrudServiceImpl;
|
||||||
|
import com.pjilisense.flxai.dao.AppAiModelDao;
|
||||||
|
import com.pjilisense.flxai.dto.AppAiModelDTO;
|
||||||
|
import com.pjilisense.flxai.entity.AppAiModelEntity;
|
||||||
|
import com.pjilisense.flxai.service.AppAiModelService;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* AI模型表
|
||||||
|
*
|
||||||
|
* @author liushujing liushujing@philisense.com
|
||||||
|
* @since 1.0.0 2024-12-20
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class AppAiModelServiceImpl extends CrudServiceImpl<AppAiModelDao, AppAiModelEntity, AppAiModelDTO> implements AppAiModelService {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public QueryWrapper<AppAiModelEntity> getWrapper(Map<String, Object> params){
|
||||||
|
String id = (String)params.get("id");
|
||||||
|
|
||||||
|
QueryWrapper<AppAiModelEntity> wrapper = new QueryWrapper<>();
|
||||||
|
wrapper.eq(StrUtil.isNotBlank(id), "id", id);
|
||||||
|
|
||||||
|
return wrapper;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,34 @@
|
|||||||
|
package com.pjilisense.flxai.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.pjilisense.flxai.base.service.impl.CrudServiceImpl;
|
||||||
|
import com.pjilisense.flxai.dao.AppAiPluginDao;
|
||||||
|
import com.pjilisense.flxai.dto.AppAiPluginDTO;
|
||||||
|
import com.pjilisense.flxai.entity.AppAiPluginEntity;
|
||||||
|
import com.pjilisense.flxai.service.AppAiPluginService;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* AI插件表
|
||||||
|
*
|
||||||
|
* @author liushujing liushujing@philisense.com
|
||||||
|
* @since 1.0.0 2024-12-20
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class AppAiPluginServiceImpl extends CrudServiceImpl<AppAiPluginDao, AppAiPluginEntity, AppAiPluginDTO> implements AppAiPluginService {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public QueryWrapper<AppAiPluginEntity> getWrapper(Map<String, Object> params){
|
||||||
|
String id = (String)params.get("id");
|
||||||
|
|
||||||
|
QueryWrapper<AppAiPluginEntity> wrapper = new QueryWrapper<>();
|
||||||
|
wrapper.eq(StrUtil.isNotBlank(id), "id", id);
|
||||||
|
|
||||||
|
return wrapper;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,26 @@
|
|||||||
|
<?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.pjilisense.flxai.dao.AppAiModelDao">
|
||||||
|
|
||||||
|
<resultMap type="com.pjilisense.flxai.entity.AppAiModelEntity" id="appAiModelMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="identifier" column="identifier"/>
|
||||||
|
<result property="providers" column="providers"/>
|
||||||
|
<result property="conversations" column="conversations"/>
|
||||||
|
<result property="likes" column="likes"/>
|
||||||
|
<result property="tokens" column="tokens"/>
|
||||||
|
<result property="description" column="description"/>
|
||||||
|
<result property="displayname" column="displayname"/>
|
||||||
|
<result property="enabled" column="enabled"/>
|
||||||
|
<result property="metaId" column="meta_id"/>
|
||||||
|
<result property="metaTokens" column="meta_tokens"/>
|
||||||
|
<result property="category" column="category"/>
|
||||||
|
<result property="title" column="title"/>
|
||||||
|
<result property="suggestions" column="suggestions"/>
|
||||||
|
<result property="createdAt" column="created_at"/>
|
||||||
|
<result property="userid" column="userid"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,24 @@
|
|||||||
|
<?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.pjilisense.flxai.dao.AppAiPluginDao">
|
||||||
|
|
||||||
|
<resultMap type="com.pjilisense.flxai.entity.AppAiPluginEntity" id="appAiPluginMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="author" column="author"/>
|
||||||
|
<result property="createdAt" column="created_at"/>
|
||||||
|
<result property="homepage" column="homepage"/>
|
||||||
|
<result property="identifier" column="identifier"/>
|
||||||
|
<result property="locale" column="locale"/>
|
||||||
|
<result property="manifest" column="manifest"/>
|
||||||
|
<result property="avatar" column="avatar"/>
|
||||||
|
<result property="tags" column="tags"/>
|
||||||
|
<result property="title" column="title"/>
|
||||||
|
<result property="description" column="description"/>
|
||||||
|
<result property="category" column="category"/>
|
||||||
|
<result property="schemaVersion" column="schema_version"/>
|
||||||
|
<result property="userid" column="userid"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
Loading…
Reference in New Issue