« Back to Search  |  Reader Mode  |  Switch to Full Retro Site View Links: Stay in Reader  |  Retro Mode: ON  |  Original »
GitHub · Extracted in 1485 ms

[咨询] 添加接口调用post时数据库中json字段如何表示 · Issue #838 · APIJSON/APIJSON

Source: https://github.com/APIJSON/APIJSON/issues/838

Repository navigation

[咨询] 添加接口调用post时数据库中json字段如何表示  #838


New issue

New issue

Open

Open
[咨询] 添加接口调用post时数据库中json字段如何表示 #838 Labels
Document 文档

Enhancement 增强

Question 使用问题

help wanted

Description

@maorx's profile maorx opened on Aug 22, 2025

Description

{{url}}/apijson/post
{
"ComplexPoly4OffsetLib" : {
"id" : null,
"uuid" : "0198d0a1-6302-70e5-adee-2a49d3446a8b",
"full_entity_key" : "Fdm20-Rpc-dev_760300368696180736_760299724456656962",
"from_sys" : "Fdm20-Rpc-dev",
"order_id" : null,
"order_code" : null,
"batch_id" : "760300368696180736",
"batch_code" : "YFceshi20250721001",
"entity_key" : "760299724456656962",
"entity_code" : "S250721990920-1001",
"duplicate" : null,
"poly" : {
"type" : "Shape"
},
"poly_md5" : "a07676153f6ffa7e8381de8614ec3d76",
"edge_count" : 12,
"edge_offset_list" : [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ],
"model_build_time" : "2025-07-21 10:16:54",
"import_time" : null,
"create_time" : null,
"update_time" : null
},
"tag": "ComplexPoly4OffsetLib"
}
请教一下,我想往数据库里新增一条记录,poly是mysql json字段类型, 发送的数据里,poly用{}来表示,数据库里写不进去,改用json字符串,可以写入进去,有没有比较好的办法,用字符串的方式,对前端不太友好

Metadata

Metadata

Assignees

No one assigned

    Labels


    Document 文档

    Enhancement 增强

    Question 使用问题

    help wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions