1、为发布的作品添加标签
2、修改标签 3、不允许用户重复参与活动 4、查询所有参与活动的作品
This commit is contained in:
@@ -3,6 +3,10 @@ package com.ai.da.mapper.primary;
|
||||
import com.ai.da.common.config.mybatis.plus.CommonMapper;
|
||||
import com.ai.da.mapper.primary.entity.Portfolio;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface PortfolioMapper extends CommonMapper<Portfolio> {
|
||||
Portfolio getByIdAll(Long originalPortfolioId);
|
||||
|
||||
List<Portfolio> getByTag(Long accountId, String tagName);
|
||||
}
|
||||
|
||||
@@ -2,10 +2,14 @@ package com.ai.da.mapper.primary;
|
||||
|
||||
import com.ai.da.common.config.mybatis.plus.CommonMapper;
|
||||
import com.ai.da.mapper.primary.entity.PortfolioTags;
|
||||
import com.ai.da.mapper.primary.entity.Tags;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
public interface PortfolioTagsMapper extends CommonMapper<PortfolioTags> {
|
||||
|
||||
void deleteByPortfolioId(Long portfolioId);
|
||||
|
||||
// portfolioId与tagId建立唯一约束, 如果组合 portfolio_id 和 tag_id 已经存在,插入操作会被忽略。
|
||||
void insertIgnore(Long portfolioId, Long tagId, LocalDateTime time);
|
||||
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.ai.da.mapper.primary;
|
||||
|
||||
import com.ai.da.common.config.mybatis.plus.CommonMapper;
|
||||
import com.ai.da.mapper.primary.entity.Tags;
|
||||
import com.ai.da.model.dto.TagsDTO;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -11,4 +12,6 @@ public interface TagsMapper extends CommonMapper<Tags> {
|
||||
|
||||
List<Map<String, String>> getMatchingTags(String userInput);
|
||||
|
||||
List<TagsDTO> getTagByPortfolioId(Long portfolioId);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user