| | |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import com.vincent.rsf.server.manager.utils.buildPageRowsUtils; |
| | | |
| | | import java.io.File; |
| | | import java.io.FileInputStream; |
| | |
| | | if (config != null && PROJECT_LOGO_FLAG.equals(flag)) { |
| | | config.setVal(resolveProjectLogoValue(config.getVal())); |
| | | } |
| | | return R.ok().add(config); |
| | | return R.ok().add(buildPageRowsUtils.rowsMap(config)); |
| | | } |
| | | |
| | | @PreAuthorize("hasAnyAuthority('system:config:save','system:config:update')") |
| | |
| | | payload.put("name", savedFile.getName()); |
| | | payload.put("path", relativePath); |
| | | payload.put("url", url); |
| | | return R.ok().add(payload); |
| | | return R.ok().add(buildPageRowsUtils.rowsMap(payload)); |
| | | } |
| | | |
| | | @GetMapping("/file/logo") |