Skip to content

创建报错 #57

Description

@joydogs
Image

如图:

  1. 当 结构体没有把主键ID 叫做“Id” 时,会报错,这个还我觉得还能接受,大不了强制改下。
现在报错
{
  "component": "message",
  "type": "error",
  "content": "参数错误",
  "duration": 0,
  "icon": "",
  "data": null,
  "url": ""
}
### 建议提示改的友好些,不然都不知道是 **结构体中 主键名字没有按规则起** 的原因 
  1. 第二个 86行 代码完全没有必要做,直接把 reflectId 放到 89行就行,不然业务层如果必须用 uint或uint64 来存更大的值怎么办

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions