mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-27 01:32:03 +08:00
【新增】初始化 ai 绘画,需要的类
This commit is contained in:
parent
71e3240af6
commit
4db96fa361
@ -0,0 +1,24 @@
|
||||
package cn.iocoder.yudao.module.ai.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* ai作图
|
||||
*
|
||||
* @author fansili
|
||||
* @time 2024/4/25 15:49
|
||||
* @since 1.0
|
||||
*/
|
||||
@Tag(name = "A10-ai作图")
|
||||
@RestController
|
||||
@RequestMapping("/ai/chat/message")
|
||||
@Slf4j
|
||||
@AllArgsConstructor
|
||||
public class AiImageController {
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
package cn.iocoder.yudao.module.ai.dal.dataobject;
|
||||
|
||||
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* ai 绘画
|
||||
*
|
||||
* @author fansili
|
||||
* @time 2024/4/25 15:53
|
||||
* @since 1.0
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@TableName("ai_drawing_image")
|
||||
public class AiDrawingImage extends BaseDO {
|
||||
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "提示词")
|
||||
private String prompt;
|
||||
|
||||
@Schema(description = "绘画状态:提交、排队、绘画中、绘画完成、绘画失败")
|
||||
private String drawingStatus;
|
||||
|
||||
@Schema(description = "绘画图片地址")
|
||||
private String drawingImageUrl;
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,11 @@
|
||||
package cn.iocoder.yudao.module.ai.service;
|
||||
|
||||
/**
|
||||
* ai 作图
|
||||
*
|
||||
* @author fansili
|
||||
* @time 2024/4/25 15:50
|
||||
* @since 1.0
|
||||
*/
|
||||
public interface AiImageService {
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package cn.iocoder.yudao.module.ai.service.impl;
|
||||
|
||||
import cn.iocoder.yudao.module.ai.service.AiImageService;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* ai 作图
|
||||
*
|
||||
* @author fansili
|
||||
* @time 2024/4/25 15:51
|
||||
* @since 1.0
|
||||
*/
|
||||
@AllArgsConstructor
|
||||
@Service
|
||||
@Slf4j
|
||||
public class AiImageServiceImpl implements AiImageService {
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user