|
@@ -6,10 +6,26 @@ import com.tzld.piaoquan.api.model.vo.contentplatform.GzhPlanItemVO;
|
|
|
import com.tzld.piaoquan.api.model.vo.contentplatform.QwPlanItemVO;
|
|
|
import com.tzld.piaoquan.api.model.vo.contentplatform.VideoContentItemVO;
|
|
|
import com.tzld.piaoquan.growth.common.utils.page.Page;
|
|
|
+import org.springframework.util.StringUtils;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
public interface ContentPlatformPlanService {
|
|
|
+
|
|
|
+ static String getVideoTitle(ContentPlatformGzhPlanVideo video) {
|
|
|
+ if (StringUtils.hasText(video.getCustomTitle())) {
|
|
|
+ return video.getCustomTitle();
|
|
|
+ }
|
|
|
+ return video.getTitle();
|
|
|
+ }
|
|
|
+
|
|
|
+ static String getVideoCover(ContentPlatformGzhPlanVideo video) {
|
|
|
+ if (StringUtils.hasText(video.getCustomCover())) {
|
|
|
+ return video.getCustomCover();
|
|
|
+ }
|
|
|
+ return video.getCover();
|
|
|
+ }
|
|
|
+
|
|
|
Page<GzhPlanItemVO> gzhPlanList(GzhPlanListParam param);
|
|
|
|
|
|
void gzhPlanSave(GzhPlanSaveParam param);
|