//package com.backendsys.controller.Cms;
//
//import com.backendsys.entity.Cms.CmsSiteInfoDTO;
//import com.backendsys.service.Cms.CmsSiteInfoService;
//import com.backendsys.utils.response.Result;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.security.access.prepost.PreAuthorize;
//import org.springframework.validation.annotation.Validated;
//import org.springframework.web.bind.annotation.*;
//
///**
// * 系统信息
// */
//@Validated
//@RestController
//public class CmsSiteInfoController {
//
//    @Autowired
//    private CmsSiteInfoService cmsSiteInfoService;
//
//    @PreAuthorize("@sr.hasPermission('13')")
//    @GetMapping("/api/cms/site/getSiteInfo")
//    public Result getSiteInfo(@Validated CmsSiteInfoDTO cmsSiteInfoDTO) {
//        return Result.success(cmsSiteInfoService.querySiteInfo(cmsSiteInfoDTO));
//    }
//
//    @GetMapping("/api/public/cms/site/getSiteInfo")
//    public Result getSiteInfoPublic(@Validated CmsSiteInfoDTO cmsSiteInfoDTO) {
//        return Result.success(cmsSiteInfoService.querySiteInfo(cmsSiteInfoDTO));
//    }
//
//    @PreAuthorize("@sr.hasPermission('13.1')")
//    @PutMapping("/api/cms/site/updateSiteInfo")
//    public Result updateSiteInfo(@Validated(CmsSiteInfoDTO.Update.class) @RequestBody CmsSiteInfoDTO cmsSiteInfoDTO) {
//        cmsSiteInfoDTO.setId(Long.valueOf(1));
//        return Result.success(cmsSiteInfoService.updateSiteInfo(cmsSiteInfoDTO), "更新成功");
//    }
//
//}
