3
0

empty types struct field, no data

This commit is contained in:
Tit Petric 2018-07-01 01:45:22 +02:00
parent 1bb067b7ba
commit c82b26436f
4 changed files with 3 additions and 20 deletions

View File

@ -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");

View File

@ -6,9 +6,7 @@
"entrypoint": "types",
"path": "types",
"authentication": [],
"struct": [
{ "name": "ID", "type": "string" }
],
"struct": [],
"apis": [
{
"name": "list",

View File

@ -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",

View File

@ -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
}