设置审核开关状态

This commit is contained in:
liuchengqian 2022-06-01 21:48:35 +08:00
parent fd9b01bc77
commit 30327a25b1

View File

@ -11,6 +11,7 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import javax.transaction.Transactional;
import java.util.List;
import java.util.Locale;
@ -25,6 +26,7 @@ public class SettingController {
@Resource
private SettingDao settingDao;
@Transactional(rollbackOn = Exception.class)
@PostMapping("/updateswitchstate")
public String updateSwitchState(@RequestBody SettingQo settingQo) {
Locale locale = LocaleContextHolder.getLocale();