|
|
|
@ -5,7 +5,9 @@ import com.xhm.common.core.page.TableDataInfo;
|
|
|
|
|
import com.xhm.common.core.redis.RedisCache; |
|
|
|
|
import com.xhm.common.general.Result; |
|
|
|
|
import com.xhm.wjnft.domain.WjBrand; |
|
|
|
|
import com.xhm.wjnft.domain.WjManual; |
|
|
|
|
import com.xhm.wjnft.domain.WjPcRotation; |
|
|
|
|
import com.xhm.wjnft.service.IWjManualService; |
|
|
|
|
import com.xhm.wjnft.service.pc.PCFramerService; |
|
|
|
|
import com.xhm.wjnft.utils.BaseMobileController; |
|
|
|
|
import com.xhm.wjnft.vomain.WjArtistVO; |
|
|
|
@ -38,6 +40,9 @@ public class PCFramerController extends BaseController {
|
|
|
|
|
@Autowired |
|
|
|
|
private RedisCache redisCache; |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
private IWjManualService manualService; |
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "创作者轮播图") |
|
|
|
|
// @GetMapping("/defaultPicUrl")
|
|
|
|
|
public Result<WjPcRotation> defaultPicUrl(){ |
|
|
|
@ -75,7 +80,22 @@ public class PCFramerController extends BaseController {
|
|
|
|
|
return Result.suc(pcFramerVOS); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "创作者操作手册") |
|
|
|
|
@GetMapping("/manual") |
|
|
|
|
public Result<WjManual> manual(){ |
|
|
|
|
if(redisCache.getCacheObject("/open/pc/framer/manual") != null ){ |
|
|
|
|
WjManual wjManual = redisCache.getCacheObject("/open/pc/framer/manual"); |
|
|
|
|
logger.info("创作者信息"+wjManual); |
|
|
|
|
return Result.suc(wjManual); |
|
|
|
|
} |
|
|
|
|
List<WjManual> wjManuals = manualService.selectWjManualList(null); |
|
|
|
|
if(wjManuals.size() > 0){ |
|
|
|
|
redisCache.setCacheObject("/open/pc/framer/manual",wjManuals.get(0),300, TimeUnit.SECONDS); |
|
|
|
|
return Result.suc(wjManuals.get(0)); |
|
|
|
|
} |
|
|
|
|
return Result.suc(); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|