Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:A616567126 GPT WEB JAVA SysConfigController

From Leeroopedia
Knowledge Sources
Domains Admin_API, System_Configuration
Last Updated 2026-10-13 00:00 GMT

Overview

Concrete REST controller for querying and updating global system configuration, including image upload for logos and branding assets.

Description

The SysConfigController exposes endpoints under `/sys/config` for querying the current system configuration, updating configuration fields, and uploading images (logos, banners). Image uploads use `ImgUtil` for file storage and return the URL path.

Usage

Use this controller when building the admin system settings page for managing global configuration like API URLs, feature toggles, and branding assets.

Code Reference

Source Location

Signature

@RestController
@RequestMapping("/sys/config")
public class SysConfigController {

    @RequestMapping(value = "/queryPage", method = RequestMethod.POST)
    public B<SysConfigQueryRes> querySysConfig();

    @RequestMapping(value = "/update", method = RequestMethod.POST)
    public B<Void> update(@Validated @RequestBody SysConfigUpdateReq req);

    @RequestMapping(value = "/upload/img")
    public B<SysConfigUploadImgRes> uploadImg(MultipartFile file) throws IOException;
}

Import

import com.intelligent.bot.api.sys.admin.SysConfigController;

I/O Contract

Inputs

Name Type Required Description
req SysConfigUpdateReq Yes (update) Updated system config fields
file MultipartFile Yes (upload) Image file to upload

Outputs

Name Type Description
querySysConfig B<SysConfigQueryRes> Full system configuration
uploadImg B<SysConfigUploadImgRes> Image URL and file path

Usage Examples

Upload Logo Image

// POST /sys/config/upload/img (multipart/form-data)
// Response: { "imageUrl": "https://cdn.example.com/logo.jpg", "filePatch": "/20261013/logo.jpg" }

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment