empty types struct field, no data
This commit is contained in:
parent
1bb067b7ba
commit
c82b26436f
@ -29,7 +29,7 @@ usort($apis, function($a, $b) {
|
||||
|
||||
foreach (array("structs", "handlers", "interfaces", "request", "") as $type) {
|
||||
foreach ($apis as $api) {
|
||||
if (!empty($api['struct'])) {
|
||||
if (is_array($api['struct'])) {
|
||||
$name = ucfirst($api['interface']);
|
||||
$filename = str_replace("..", ".", strtolower($name) . "." . $type . ".go");
|
||||
|
||||
|
||||
@ -6,9 +6,7 @@
|
||||
"entrypoint": "types",
|
||||
"path": "types",
|
||||
"authentication": [],
|
||||
"struct": [
|
||||
{ "name": "ID", "type": "string" }
|
||||
],
|
||||
"struct": [],
|
||||
"apis": [
|
||||
{
|
||||
"name": "list",
|
||||
|
||||
@ -3,12 +3,7 @@
|
||||
"Description": "Types are building blocks for module forms",
|
||||
"Package": "crm",
|
||||
"Interface": "Types",
|
||||
"Struct": [
|
||||
{
|
||||
"name": "ID",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"Struct": [],
|
||||
"Protocol": "",
|
||||
"Authentication": [],
|
||||
"Path": "/types",
|
||||
|
||||
@ -2,18 +2,8 @@ package crm
|
||||
|
||||
// Types
|
||||
type Types struct {
|
||||
ID string
|
||||
}
|
||||
|
||||
func (Types) new() *Types {
|
||||
return &Types{}
|
||||
}
|
||||
|
||||
func (t *Types) GetID() string {
|
||||
return t.ID
|
||||
}
|
||||
|
||||
func (t *Types) SetID(value string) *Types {
|
||||
t.ID = value
|
||||
return t
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user