|
|
@ -25,6 +25,7 @@ import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils; |
|
|
|
import com.elink.esua.epdc.commons.tools.validator.group.AddGroup; |
|
|
|
import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup; |
|
|
|
import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup; |
|
|
|
import com.elink.esua.epdc.modules.phrases.entity.ActPhraseRedisEntity; |
|
|
|
import com.elink.esua.epdc.modules.phrases.excel.ActPhraseExcel; |
|
|
|
import com.elink.esua.epdc.modules.phrases.service.ActPhraseService; |
|
|
|
import com.elink.esua.epdc.phrases.ActPhraseDTO; |
|
|
@ -91,11 +92,16 @@ public class ActPhraseController { |
|
|
|
ExcelUtils.exportExcelToTarget(response, null, list, ActPhraseExcel.class); |
|
|
|
} |
|
|
|
|
|
|
|
@PostMapping("sagenumAddOne") |
|
|
|
@GetMapping(value="sagenumAddOneById",produces = "text/plain;charset=UTF-8") |
|
|
|
public Result sagenumAddOne(String id) { |
|
|
|
|
|
|
|
actPhraseService.updateUsagenumAddOne(id); |
|
|
|
return new Result().ok("使用次数加一成功"); |
|
|
|
} |
|
|
|
|
|
|
|
@GetMapping(value="getPhraseList",produces = "text/plain;charset=UTF-8") |
|
|
|
public Result getPhraseList() { |
|
|
|
List<ActPhraseRedisEntity> object = actPhraseService.getPhraseList(); |
|
|
|
return new Result().ok(object); |
|
|
|
} |
|
|
|
|
|
|
|
} |