fzuSE2024

command module
v0.0.0-...-4aeb0dc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2024 License: MIT Imports: 8 Imported by: 0

README

SE2024

2024软工实践-时空数据管理系统 使用golang-gin框架 采用skeleton脚手架 restful风格

在postman中测试chart

饼图
  1. Set Request Type and URL:
  • Request Type: POST
  • URL: http://localhost:8080/chart/pie
  1. Set Request Headers:
  • Add a Content-Type header with the value application/json
  1. Set Request Body:
  • Select the raw option and set the type to JSON Enter the JSON data in the request body, for example:
{
  "title": "Sample Pie Chart",
  "data": [
    {"name": "Category A", "value": 30},
    {"name": "Category B", "value": 70}
  ]
}
  1. Send Request:
  • Click the Send button to send the request
折线图
  1. Set Request Type and URL:
  • Request Type: POST
  • URL: http://localhost:8080/chart/line
  1. Set Request Headers:
  • Add a Content-Type header with the value application/json
  1. Set Request Body:
  • Select the raw option and set the type to JSON Enter the JSON data in the request body, for example:
{
  "title": "Sample Line Chart",
  "data": [
    {"x": 1, "y": 10},
    {"x": 2, "y": 20},
    {"x": 3, "y": 30}
  ]
}
  1. Send Request:
  • Click the Send button to send the request
柱状图
  1. Set Request Type and URL:
  • Request Type: POST
  • URL: http://localhost:8080/chart/bar
  1. Set Request Headers:
  • Add a Content-Type header with the value application/json
  1. Set Request Body:
  • Select the raw option and set the type to JSON Enter the JSON data in the request body, for example:
{
  "title": "Sample Bar Chart",
  "data": [
    {"label": "A", "value": 10},
    {"label": "B", "value": 20},
    {"label": "C", "value": 30}
  ]
}
  1. Send Request:
  • Click the Send button to send the request
折线柱状混合图
  1. Set Request Type and URL:
  • Request Type: POST
  • URL: http://localhost:8080/chart/linebarmixed
  1. Set Request Headers:
  • Add a Content-Type header with the value application/json
  1. Set Request Body:
  • Select the raw option and set the type to JSON Enter the JSON data in the request body, for example:
{
  "title": "Sample Mixed Chart",
  "line_data": [
    {"x": "A", "y": 10},
    {"x": "B", "y": 20},
    {"x": "C", "y": 30}
  ],
  "bar_data": [
    {"label": "A", "value": 10},
    {"label": "B", "value": 20},
    {"label": "C", "value": 30}
  ]
}
  1. Send Request:
  • Click the Send button to send the request

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳