package com.example.midjourney.service;import com.example.midjourney.bean.pojo.MidjourneyLog;import com.example.midjourney.bean.pojo.RoomInfo;import java.util.List;public interface MidjourneyLogService {MidjourneyLog findById(Long id);MidjourneyLog findLastNormalLog(Integer memberId);MidjourneyLog findLastNormalOrIterative(Integer memberId);void updateRoom(MidjourneyLog midjourneyLog, RoomInfo roomInfo);List
Impl
package com.example.midjourney.service.impl;import com.example.midjourney.bean.pojo.MidjourneyLog;import com.example.midjourney.bean.pojo.RoomInfo;import com.example.midjourney.mapper.MidjourneyLogMapper;import com.example.midjourney.service.MidjourneyLogService;import com.example.midjourney.util.Safes;import org.springframework.stereotype.Service;import javax.annotation.Resource;import java.util.List;@Servicepublic class MidjourneyLogServiceImpl implements MidjourneyLogService {@Resourceprivate MidjourneyLogMapper midjourneyLogMapper;@Overridepublic MidjourneyLog findById(Long id) {return midjourneyLogMapper.selectByPrimaryKey(id);}@Overridepublic MidjourneyLog findLastNormalLog(Integer memberId) {return midjourneyLogMapper.findLastNormalLog(memberId);}@Overridepublic MidjourneyLog findLastNormalOrIterative(Integer memberId) {return midjourneyLogMapper.findLastNormalOrIterative(memberId);}@Overridepublic void updateRoom(MidjourneyLog midjourneyLog, RoomInfo roomInfo) {midjourneyLog.setRoomId(roomInfo.getId());midjourneyLogMapper.updateByPrimaryKeySelective(midjourneyLog);}@Overridepublic List
这里用了通用插件
package com.example.midjourney.mapper;import com.example.midjourney.bean.pojo.MidjourneyLog;import org.apache.ibatis.annotations.Param;import org.apache.ibatis.annotations.Select;import tk.mybatis.mapper.common.Mapper;public interface MidjourneyLogMapper extends Mapper
常量类可以根据需要自定调整敏感词
敏感词写上审核不过 , 大家自己想想脑补下吧 , 各种不好的词都往那个敏感词List里面自己加吧!
- 1 Python 扩展教程: 调用百度AI
- 【实战教学】用ChatGPT+Midjourney做绘本,太轻松啦!
- Midjourney进阶教程!7大方向快速生成合心意的AI人物形象
- 12步骤:Midjourney 注册流程教学账号手机验证攻略
- Java程序接入ChatGPT
- 只因太美,Midjourney生成画面可以做壁纸了
- Java实战之---旅行钓鱼游戏
- JDK和SDK的区别
- 其一 Java swing简易浏览器页面显示,超链接跳转与手动输入URL跳转
- idea 创建java web项目_使用IDEA创建javaweb项目