设置审核开关状态
This commit is contained in:
parent
fd9b01bc77
commit
30327a25b1
@ -11,6 +11,7 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
import javax.transaction.Transactional;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
|
||||||
@ -25,6 +26,7 @@ public class SettingController {
|
|||||||
@Resource
|
@Resource
|
||||||
private SettingDao settingDao;
|
private SettingDao settingDao;
|
||||||
|
|
||||||
|
@Transactional(rollbackOn = Exception.class)
|
||||||
@PostMapping("/updateswitchstate")
|
@PostMapping("/updateswitchstate")
|
||||||
public String updateSwitchState(@RequestBody SettingQo settingQo) {
|
public String updateSwitchState(@RequestBody SettingQo settingQo) {
|
||||||
Locale locale = LocaleContextHolder.getLocale();
|
Locale locale = LocaleContextHolder.getLocale();
|
||||||
|
Loading…
Reference in New Issue
Block a user