From 2e4a441f2f4592bb22a905080d47bf6581425ec4 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 29 Sep 2021 22:42:06 +0800 Subject: [PATCH] =?UTF-8?q?+=20=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- global/bindata.go | 275 +++++++++++++++++++++++++++------- go.mod | 3 +- go.sum | 4 + user/user.go | 4 + xiang/flows/menu.flow.json | 47 ++++++ xiang/models/menu.json | 293 +++++++++++++++++++++++++++++++++++++ 6 files changed, 569 insertions(+), 57 deletions(-) create mode 100644 xiang/flows/menu.flow.json create mode 100644 xiang/models/menu.json diff --git a/global/bindata.go b/global/bindata.go index a5003ae1..12a5bcb0 100644 --- a/global/bindata.go +++ b/global/bindata.go @@ -1,12 +1,19 @@ -// Package global Code generated for package main by go-bindata DO NOT EDIT. (@generated) +// Code generated for package global by go-bindata DO NOT EDIT. (@generated) // sources: // .tmp/data/ui/index.html +// .tmp/data/xiang/.DS_Store // .tmp/data/xiang/apis/README.md -// .tmp/data/xiang/apis/sys.http.json +// .tmp/data/xiang/apis/table.http.json +// .tmp/data/xiang/apis/user.http.json +// .tmp/data/xiang/apis/xiang.http.json // .tmp/data/xiang/flows/README.md +// .tmp/data/xiang/flows/menu.flow.json // .tmp/data/xiang/flows/table/get.flow.json // .tmp/data/xiang/models/README.md +// .tmp/data/xiang/models/menu.json // .tmp/data/xiang/models/user.json +// .tmp/data/xiang/tables/README.md +// .tmp/data/xiang/tables/user.json package global import ( @@ -116,15 +123,15 @@ func (f *assetOperator) Open(name string) (http.File, error) { } } return &assetFile{name: name, childInfos: childInfos}, nil + } else { + // If the error is not found, return an error that will + // result in a 404 error. Otherwise the server returns + // a 500 error for files not found. + if strings.Contains(err.Error(), "not found") { + return nil, os.ErrNotExist + } + return nil, err } - - // If the error is not found, return an error that will - // result in a 404 error. Otherwise the server returns - // a 500 error for files not found. - if strings.Contains(err.Error(), "not found") { - return nil, os.ErrNotExist - } - return nil, err } // Close no need do anything @@ -170,22 +177,42 @@ func AssetFile() http.FileSystem { return &assetOperator{} } -var _uiIndexHTML = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xca\x48\xcd\xc9\xc9\x57\x28\xcf\x2f\xca\x49\xe1\x02\x04\x00\x00\xff\xff\x2d\x3b\x08\xaf\x0c\x00\x00\x00") +var _uiIndexHtml = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xca\x48\xcd\xc9\xc9\x57\x28\xcf\x2f\xca\x49\x51\x30\xe2\x02\x04\x00\x00\xff\xff\x65\x70\x87\xe8\x0e\x00\x00\x00") -func uiIndexHTMLBytes() ([]byte, error) { +func uiIndexHtmlBytes() ([]byte, error) { return bindataRead( - _uiIndexHTML, + _uiIndexHtml, "ui/index.html", ) } -func uiIndexHTML() (*asset, error) { - bytes, err := uiIndexHTMLBytes() +func uiIndexHtml() (*asset, error) { + bytes, err := uiIndexHtmlBytes() if err != nil { return nil, err } - info := bindataFileInfo{name: "ui/index.html", size: 12, mode: os.FileMode(420), modTime: time.Unix(1631095267, 0)} + info := bindataFileInfo{name: "ui/index.html", size: 14, mode: os.FileMode(420), modTime: time.Unix(1632926333, 0)} + a := &asset{bytes: bytes, info: info} + return a, nil +} + +var _xiangDs_store = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x98\x41\x4b\xc3\x30\x14\x80\x5f\xba\xaa\x29\x43\xec\x41\x70\xc7\x5e\xbc\xed\xb0\x0d\x11\x77\x10\x4a\x9d\x07\x6f\x42\x45\x0f\x53\xb6\x96\x0e\x57\xa8\xcd\x68\x3b\x8b\xd6\xca\xfe\x86\xfe\x23\x7f\x81\x7f\x47\x6a\x9e\x12\xe6\xf4\x26\x4e\x7d\x1f\x8c\x2f\x6b\x9a\xb4\xaf\x29\xe9\x4b\x00\x80\x39\xd3\xa0\x0d\x60\x02\x00\x07\x69\xcd\x80\x85\x70\xfc\x7d\x40\x53\xcc\xaa\x3e\xfc\x3c\x9d\xf8\x91\xf0\x01\xe0\x69\x71\x5f\xc4\x92\x51\x8d\x9d\x0e\x1e\x4c\x20\x84\x54\x1d\x3f\x7f\x12\x85\x69\xd6\x6a\x3d\x33\xad\xa6\xaf\xac\xae\x71\xce\xeb\x7c\x9d\x5f\xb8\x63\x91\xbb\x99\x97\x4d\x53\xc7\x4b\xfa\xd5\xbf\x63\x2f\x1b\xfb\x58\x3e\x11\x22\x7a\x2f\x7b\xfe\x69\x38\xca\x07\xe6\xe6\x81\x88\x33\x2f\x8c\x47\xc9\x6b\xe3\x30\x18\xf9\x5e\x72\x7e\x16\xc6\x81\xc8\x1d\x31\x8d\x83\xb4\xaf\x54\x18\x86\xc1\x8d\x81\xd9\x28\x8a\xbd\x4e\xab\x69\xed\x76\x3b\x65\xd3\x2a\xba\x55\x79\xa7\xdb\x29\x4b\x83\x6f\x6d\xb7\xf7\x8f\x86\x57\x37\xb7\xc5\x5d\x79\xff\x20\xe3\x60\x0c\x03\xda\x98\x0b\xf0\x51\x0d\xf0\xda\x4d\xe2\x48\xc4\x97\xf2\x85\x25\x08\x82\xf8\xaf\xe0\x14\xc8\xeb\x3f\x7d\x23\x04\x41\x2c\x1d\xd5\xfc\x60\xa1\x6d\xf4\x4c\x9a\x61\xbd\x86\xd6\x95\x36\x26\xda\x42\xdb\xe8\x99\x34\xc3\xf3\x34\xb4\x8e\xe6\x68\x13\x6d\xa1\x6d\xf4\x4c\x1a\x27\x2d\x86\x8b\x0f\x86\x57\x66\xb8\x42\x61\x26\xda\x42\xdb\xdf\xf3\x6c\x08\xe2\xb7\x53\x93\x32\xab\xef\xff\xe1\xe7\xeb\x7f\x82\x20\xfe\x30\x4c\xef\xb9\x3d\xe7\x8b\x3d\x11\x0d\x13\x81\xe1\x5b\x83\xb9\x44\x00\x94\x24\x40\x93\x9b\x85\x0d\xe5\x38\x25\x02\x04\xb1\x64\xbc\x04\x00\x00\xff\xff\x95\x71\x05\x5b\x04\x18\x00\x00") + +func xiangDs_storeBytes() ([]byte, error) { + return bindataRead( + _xiangDs_store, + "xiang/.DS_Store", + ) +} + +func xiangDs_store() (*asset, error) { + bytes, err := xiangDs_storeBytes() + if err != nil { + return nil, err + } + + info := bindataFileInfo{name: "xiang/.DS_Store", size: 6148, mode: os.FileMode(420), modTime: time.Unix(1632926333, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -205,27 +232,67 @@ func xiangApisReadmeMd() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "xiang/apis/README.md", size: 13, mode: os.FileMode(420), modTime: time.Unix(1631095267, 0)} + info := bindataFileInfo{name: "xiang/apis/README.md", size: 13, mode: os.FileMode(420), modTime: time.Unix(1632926333, 0)} a := &asset{bytes: bytes, info: info} return a, nil } -var _xiangApisSysHTTPJSON = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x4c\x90\x31\x4e\x03\x31\x10\x45\x7b\x9f\x62\x34\xa2\x0c\xce\x42\xe9\x8e\x02\x10\x1d\x05\x5d\x94\xc2\xec\x1a\xe2\x28\x6b\x5b\x33\x36\x28\x8a\x72\x05\x38\x02\x05\xe2\x04\x94\x39\x0f\xe4\x1a\x68\xbc\x4b\x92\xc6\x92\xdf\xfb\xf3\x35\x9a\x8d\x02\xc0\x60\x7b\x87\x06\x70\xff\xbd\xdb\xef\x3e\x7e\xdf\xbe\x7e\xde\x3f\x71\x22\xe6\xc5\x11\xfb\x18\x44\x5e\xe8\x46\x37\x03\xed\x1c\xb7\xe4\x53\x1e\xcd\xe9\xd8\xd5\xfd\xdd\x90\x79\xa6\x58\x92\x58\x5e\xf3\x48\x8a\xa5\x4e\xc8\xa3\xb3\xe4\xe8\x7c\xf9\x9a\x07\x91\x6c\x5e\x30\x1a\x98\x29\x00\x80\x4d\x7d\x47\x2c\xf1\xa9\x0f\x4f\x71\x6a\x7c\x57\xd3\x55\xf5\x2e\x2f\x62\xed\xba\xbd\x7e\x38\xe2\x44\xb1\x75\x2c\x55\xd8\xc7\xce\xad\x58\x17\x76\xa4\x6f\x7c\x38\x99\xf5\xb2\xf3\x0c\xcf\x92\x25\xdb\x6b\x69\x05\x34\xf5\xc3\x38\x3f\xa4\x62\xc9\x68\x0e\xbb\x00\x20\x67\x9b\x8b\x54\x5f\x36\xcd\xe4\x88\xf3\x3a\xd5\xd3\xd9\x94\x56\xbe\xb5\x72\x92\xe9\x92\x63\xc0\x31\xb2\x55\xff\xef\x5c\x6d\xd5\x5f\x00\x00\x00\xff\xff\x8a\x81\x76\x11\x6e\x01\x00\x00") +var _xiangApisTableHttpJson = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xd4\x96\xcd\xaa\xd3\x40\x14\xc7\xf7\x79\x8a\x61\xe8\x32\x4d\xa2\xcb\xec\x04\x3f\xe8\xca\x42\x15\x17\xa5\x8b\x63\xe6\x98\x8c\xa4\x93\x71\x66\x52\xad\xa5\x8f\xa0\xae\xdc\x2b\x22\xb8\x12\x1f\xc0\xd7\xb9\xe1\x3e\xc6\x65\x26\x69\xcb\xcd\xfd\x68\x69\xb8\x34\xdd\xb4\x9c\x4f\xce\xef\xff\x2f\x43\x57\x1e\x21\x54\xc0\x1c\x69\x4c\x68\xf5\xfd\x5f\xf5\xe5\xef\xe5\xcf\x3f\xd5\x8f\xff\xd5\xd7\xdf\x17\xdf\x7e\x51\xdf\xd6\x17\xa8\x34\x2f\x84\x6d\x79\x14\x44\x41\x54\x67\x19\xea\x44\x71\x69\x9a\xca\xcd\xe1\x27\xe3\x51\xdd\x99\xaa\xa2\x94\xb6\xe7\x13\x07\x91\x86\x06\xde\xe6\xd8\x54\x4a\x50\xcc\x56\xb8\x18\x4a\x55\x24\xa8\x75\x5d\x90\x60\x32\x4d\x63\x32\xf5\x08\x21\x64\xe5\x3e\x9b\xb4\x6d\x0f\x63\x7b\x73\xa8\x11\x54\x92\xb9\x09\x57\x9e\xa3\xc9\x0a\xb7\xef\xc5\xb3\x57\xbb\xf4\x66\xf3\xe6\x82\xc0\x5d\x10\x4c\x5a\xd3\xdc\x72\x4c\xe9\x40\x82\x82\x79\xe0\x44\xf1\x09\x8d\x3f\x94\xa8\x96\x43\x97\xb4\xf1\xc0\xc5\x81\x84\x14\x5b\xa1\xe6\x9f\x91\xce\xb6\xeb\x8a\xd2\xd0\x78\x7b\x3a\x21\x54\x1b\x30\xa5\xbd\xe2\x71\x14\xf9\xbb\xb4\x59\x4a\xa7\x3e\x48\x99\xf3\x04\xac\x9e\xe1\x7b\x5d\x08\xda\xb4\xac\xdd\xf7\xda\xbf\x57\x89\x77\x5c\xb0\x30\xe6\xec\x58\x2d\x9e\x73\xc1\xf6\x29\xd1\x84\x9c\x9d\x0a\x52\xc3\x02\xef\x82\x1c\xbf\x9c\x1c\xe0\x38\x2c\x70\xaf\xdf\x12\x96\x79\x01\x27\x83\x64\x98\xa3\xe9\x86\xf9\xd4\xad\xe8\xbd\x9d\x5c\x68\x54\xe6\x68\xca\x51\x6b\xbc\xd7\x76\x7e\xcc\x50\x61\x47\x43\xdf\x5c\xdf\x71\xd8\x73\xd5\x13\x7e\x2e\x3a\xc2\x8f\xc4\xde\xdf\x73\xfd\x12\x73\xa6\xfb\xc0\x5d\x4a\x06\x9d\x7d\x7f\xed\x96\x9c\xa5\xef\x0d\x7f\x07\xdf\x6b\xf8\x73\xf3\x5d\xa3\x31\x5c\xa4\xc7\xff\x27\x69\x8d\xdf\xc2\xfc\x60\x64\x1e\x21\x33\x6f\xed\x5d\x05\x00\x00\xff\xff\xe7\x21\x1f\xc4\x14\x0a\x00\x00") -func xiangApisSysHTTPJSONBytes() ([]byte, error) { +func xiangApisTableHttpJsonBytes() ([]byte, error) { return bindataRead( - _xiangApisSysHTTPJSON, - "xiang/apis/sys.http.json", + _xiangApisTableHttpJson, + "xiang/apis/table.http.json", ) } -func xiangApisSysHTTPJSON() (*asset, error) { - bytes, err := xiangApisSysHTTPJSONBytes() +func xiangApisTableHttpJson() (*asset, error) { + bytes, err := xiangApisTableHttpJsonBytes() if err != nil { return nil, err } - info := bindataFileInfo{name: "xiang/apis/sys.http.json", size: 366, mode: os.FileMode(420), modTime: time.Unix(1631095267, 0)} + info := bindataFileInfo{name: "xiang/apis/table.http.json", size: 2580, mode: os.FileMode(420), modTime: time.Unix(1632926333, 0)} + a := &asset{bytes: bytes, info: info} + return a, nil +} + +var _xiangApisUserHttpJson = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xc4\x92\xbf\x4e\xf3\x30\x14\xc5\xf7\x3c\xc5\x95\xf5\x8d\x69\x92\x8f\x31\x1b\x42\x08\x55\x42\xa2\x82\x6e\x55\x07\x93\xde\x36\xee\x9f\xd8\xd8\x0e\x10\x55\xdd\x99\x60\x61\x67\x40\x48\xec\x0c\x0c\x7d\x1e\xda\xd7\x40\x76\x4c\x42\xab\x22\xa4\x0a\xca\x92\x28\xe7\x1c\x9f\xdc\x9f\xed\xa9\x07\x40\x32\x3a\x41\x12\x03\x59\xbe\xcc\x97\xf3\x87\xe5\xfd\xf3\xe2\xe6\x75\x71\xfb\xf4\x76\xf7\x48\x7c\xe3\x5f\xa2\x54\x8c\x67\x26\xf2\x3f\x88\x82\xa8\x54\x7b\xa8\x12\xc9\x84\x76\xce\xe7\xc5\xfb\xad\x66\x99\x19\x48\x9e\x0b\xe3\x5e\x33\x9a\x0d\xc2\x5c\xa1\x74\x46\x4e\x65\xcf\x18\xe7\x48\x25\xca\xc6\xf0\x4a\x97\x86\xa0\x3a\x55\x24\x86\x8e\x07\x00\x30\xb5\x4f\x27\x9b\x78\x98\x50\xa1\x93\x94\xda\xb0\x75\x26\xa8\x53\x6e\xab\x8e\x0e\xdb\xb5\x5c\xfd\xa0\x51\x6b\x42\xf2\x04\x95\xaa\xe6\x09\xcc\x3c\xc1\xc1\x7a\x23\x33\x3c\x1d\x12\x5f\xe4\x28\x0b\xd2\xad\x74\x9e\x6b\x12\x57\x23\x01\x10\xa5\xa9\xce\x4d\xdd\x5e\x14\xf9\xb5\xac\x0b\x61\xb7\x93\x0a\x31\x66\x09\x35\x1b\x14\x0e\x15\xcf\x88\x8b\xcc\xec\x7b\xe6\x7f\x41\x38\xe6\x03\x96\x6d\xe2\x6b\x9d\x9c\x6d\x05\x78\xbc\x5a\xf8\x81\x27\x68\x31\xe6\xb4\xb7\x7b\x40\xcd\x47\xf8\xa3\x80\xed\xd5\x42\x07\xf8\xcf\x01\x06\x23\x2c\x88\x0f\xf5\xb7\xc2\x44\xa2\xde\x3d\x37\xcb\xfa\xfc\xdb\x7b\xbb\x99\xb0\xb9\xb2\xb4\x04\xfc\x9b\x73\x0b\x25\xf6\x25\xaa\x74\x4b\x10\x7b\x54\xa7\xeb\x15\xbf\x0c\xe4\x01\x74\xbd\x99\xf7\x1e\x00\x00\xff\xff\x78\xa3\x97\x3c\xec\x04\x00\x00") + +func xiangApisUserHttpJsonBytes() ([]byte, error) { + return bindataRead( + _xiangApisUserHttpJson, + "xiang/apis/user.http.json", + ) +} + +func xiangApisUserHttpJson() (*asset, error) { + bytes, err := xiangApisUserHttpJsonBytes() + if err != nil { + return nil, err + } + + info := bindataFileInfo{name: "xiang/apis/user.http.json", size: 1260, mode: os.FileMode(420), modTime: time.Unix(1632926333, 0)} + a := &asset{bytes: bytes, info: info} + return a, nil +} + +var _xiangApisXiangHttpJson = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x90\x3f\x4e\xc3\x30\x14\xc6\x77\x9f\xe2\xc9\x73\x9a\x06\xc6\x6c\x0c\x08\x75\xeb\xc0\x56\x75\x78\x4d\x4d\xea\x2a\xb5\x2d\xfb\x85\x3f\xaa\x72\x05\x38\x02\x03\xe2\x04\x8c\x3d\x0f\xf4\x1a\xe8\x39\x56\x42\x06\x36\x58\x6c\xf9\xf7\x7d\xfe\xf4\xbe\x77\x14\x00\xd2\xe0\x41\xc9\x12\xe4\xf9\xe3\x74\x3e\xbd\x7e\x3d\xbf\x7f\xbe\xbc\xc9\x8c\x95\x7b\xe5\x83\xb6\x86\xc5\x8b\xbc\xc8\x8b\x9e\x6e\x55\xa8\xbc\x76\x94\x94\x9f\xdf\xae\x96\x8b\xde\x53\x7b\xdb\x3a\x56\x1f\x35\x9a\x3a\xb1\x16\xfd\x96\xd9\x46\xa1\x57\x7e\xb6\x7f\xa0\x5e\x70\x48\xbb\x20\x4b\x58\x09\x00\x80\x63\x3c\x13\x66\xfb\xdc\xe9\x14\x11\xf1\x41\xd1\xce\xc6\x9c\x9b\xeb\xdb\x11\x0f\xe9\xb3\x91\x39\x6f\x2b\x15\xc2\x30\x47\x5e\x37\x76\x83\x4d\xbe\x9c\x04\x6a\xae\xb1\x5a\x0f\x6f\xdb\x92\x2c\x87\x31\x00\x64\x20\xa4\x96\x53\x2e\x8b\x22\x1b\x31\x3d\xb9\xb8\x37\x74\xae\xd1\x15\xf2\x3e\xe6\xfb\x60\x8d\x4c\x96\x2e\xde\x5d\xf6\x4b\x2b\x6d\xee\xec\x9f\xb6\x5a\x4c\x02\xff\xb9\x95\x00\x58\x8b\x4e\x7c\x07\x00\x00\xff\xff\x3e\xc1\xb8\x22\x41\x02\x00\x00") + +func xiangApisXiangHttpJsonBytes() ([]byte, error) { + return bindataRead( + _xiangApisXiangHttpJson, + "xiang/apis/xiang.http.json", + ) +} + +func xiangApisXiangHttpJson() (*asset, error) { + bytes, err := xiangApisXiangHttpJsonBytes() + if err != nil { + return nil, err + } + + info := bindataFileInfo{name: "xiang/apis/xiang.http.json", size: 577, mode: os.FileMode(420), modTime: time.Unix(1632926333, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -245,27 +312,47 @@ func xiangFlowsReadmeMd() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "xiang/flows/README.md", size: 12, mode: os.FileMode(420), modTime: time.Unix(1631095267, 0)} + info := bindataFileInfo{name: "xiang/flows/README.md", size: 12, mode: os.FileMode(420), modTime: time.Unix(1632926333, 0)} a := &asset{bytes: bytes, info: info} return a, nil } -var _xiangFlowsTableGetFlowJSON = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x74\x90\x4d\x4a\xc4\x40\x10\x85\xf7\x39\x45\x51\xb8\x0c\x21\xba\x9c\xab\xc8\x20\x9d\x74\x31\x36\x56\xd2\x43\xff\x8c\x8b\xa6\x41\x2f\xe1\xca\x8d\x27\xd0\x1b\x78\x19\xc9\x39\xa4\x3a\x33\x99\x04\x71\x13\xc2\x7b\xaf\xbe\x7e\x55\xa9\x02\x40\x56\x1d\x31\xee\x00\xa7\xf7\x97\xe9\xed\xeb\xe7\xfb\x63\x7a\xfd\xc4\x5a\xac\x13\x39\x6f\xec\x28\xe6\x6d\xd3\x36\xed\xac\x6a\xf2\xbd\x33\xc7\x70\x76\xfe\x8e\x8d\x56\x93\xc7\x1d\xdc\x57\x00\x00\xa9\x7c\x45\x56\x03\xc9\x40\xf4\xe4\x4a\xb0\xa8\x47\x67\x7b\xf2\x12\xc7\xc1\x6a\x62\xdf\x88\xdf\x1c\x28\x5c\x33\xca\x1d\xae\xbc\x35\xb3\xb8\x9e\x98\xfa\x20\x3e\x1a\x8d\xf5\xf9\xa1\x5a\x78\x9d\x61\xc2\x7d\xbd\x4e\xb3\x19\x8c\x84\xef\xda\x8d\x6c\x9d\x26\x57\x1e\x49\x80\xbd\xe5\x38\x94\xe5\x7a\x47\x2a\x90\x7e\x50\x41\x80\x76\x59\x5a\x6e\x80\x90\xb7\xe8\xe7\x47\x72\xb4\x2d\x5a\xca\xae\x81\x3e\xa8\x10\xbd\xc0\x4e\x8a\x63\xb9\x07\x8d\xaa\x63\xd2\x08\xb9\xfe\x7f\xee\xb2\xd3\x32\x95\xd2\x8d\x19\x9b\x36\xe7\xb9\x98\x48\x6c\x9e\x08\x21\xaf\x20\xfb\xe5\xff\xa2\x2e\x8d\xd1\xc6\x50\xba\x0a\xc9\xc6\x90\x33\xce\x69\x49\xee\xab\x5c\xfd\x06\x00\x00\xff\xff\x34\x26\x65\xb9\x1d\x02\x00\x00") +var _xiangFlowsMenuFlowJson = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x74\x93\xb1\x6e\x83\x30\x10\x86\x77\x9e\xc2\x3a\x75\x8c\x10\xed\x98\x57\xa9\xa2\xca\x98\x53\xb0\x62\x6c\xea\x33\x69\x2b\xc4\xde\xa5\xea\x54\x75\xe9\xd2\xad\x2f\x16\x29\x8f\x51\xd9\x40\x82\x81\x30\x20\xf9\xff\xef\xce\xe7\xcf\xe7\x36\x61\x0c\x14\xcf\x51\xc1\x96\xc1\xf9\xf3\xe7\xf4\xf1\x75\x7a\xff\x3e\xff\xfe\xc1\xc6\x5b\x47\xb4\x24\x8d\xf6\xe6\x7d\x9a\xa5\x59\xaf\x16\x48\xc2\xca\xda\x0d\xce\x32\x4d\x9b\x02\x09\xb6\xec\x31\x61\x8c\xb1\x36\xfc\xbd\xcc\x2b\xf4\x09\x15\xea\x86\x42\x64\x90\x6b\x6b\x04\x12\x05\xc7\x14\xa8\x28\x7d\x95\x5c\xef\x53\x1f\x96\xee\xd1\x5d\x23\xb9\xdd\x5f\xcb\x4e\x4b\x07\x97\x50\xa1\x70\x91\x1f\x74\x59\x5c\x2a\x4c\x1b\x99\x69\x52\x18\x3d\xd7\x6a\x6e\x51\xbb\xa5\xea\xca\xb9\x96\x2b\x23\x0e\x34\x57\x8f\x92\x64\xae\xf0\xc9\x9f\x04\x26\xd6\x6e\x1a\x07\x2f\xd2\x95\xfe\x58\x6d\x9c\x2c\x4a\xa9\x0a\x8b\x7a\xe1\x30\x06\xcf\x0d\xda\xb7\x15\xc3\xdf\xa6\xac\xa4\x87\xf0\x90\x65\xd9\x66\x69\xdf\x80\x34\x42\x98\xa3\x1a\xf4\x15\x60\x63\xc6\x12\xdb\xe0\xac\xc2\xbb\x78\x0b\x84\x83\xb3\x0a\x72\xf0\x6e\xe1\xec\xbf\xdd\x4c\xe9\x92\x5b\xab\x2e\xc6\x5f\xa2\x45\x5a\x10\x69\x19\x08\xa3\x9a\x2a\x8c\x38\x39\xee\xfc\xc8\x32\x38\x72\xd5\x84\x21\x46\xcd\x73\x85\x05\xc4\xd5\x66\x79\x23\x03\x06\xa6\xf6\x6b\xdd\x28\x05\x51\x2f\xf1\x28\x4c\x2e\x2f\xd2\x8d\x2d\xd0\x86\x1e\xa3\xf2\x96\xeb\x43\x5f\x7c\x7c\x8b\x9c\x04\xb0\xee\x8a\x62\xdc\xaa\x57\xfc\x2a\x6c\x08\xa6\x71\x75\xe3\x77\x82\xb6\xbd\xb3\x48\xe1\xb1\x51\xd7\x41\xd2\x25\xff\x01\x00\x00\xff\xff\xfc\x81\x95\xc1\x15\x04\x00\x00") -func xiangFlowsTableGetFlowJSONBytes() ([]byte, error) { +func xiangFlowsMenuFlowJsonBytes() ([]byte, error) { return bindataRead( - _xiangFlowsTableGetFlowJSON, - "xiang/flows/table/get.flow.json", + _xiangFlowsMenuFlowJson, + "xiang/flows/menu.flow.json", ) } -func xiangFlowsTableGetFlowJSON() (*asset, error) { - bytes, err := xiangFlowsTableGetFlowJSONBytes() +func xiangFlowsMenuFlowJson() (*asset, error) { + bytes, err := xiangFlowsMenuFlowJsonBytes() if err != nil { return nil, err } - info := bindataFileInfo{name: "xiang/flows/table/get.flow.json", size: 541, mode: os.FileMode(420), modTime: time.Unix(1631095267, 0)} + info := bindataFileInfo{name: "xiang/flows/menu.flow.json", size: 1045, mode: os.FileMode(420), modTime: time.Unix(1632926333, 0)} + a := &asset{bytes: bytes, info: info} + return a, nil +} + +var _xiangFlowsTableGetFlowJson = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x74\x90\x4d\x4a\xc4\x40\x10\x85\xf7\x39\x45\x51\xb8\x0c\x21\xba\x9c\xab\xc8\x20\x9d\x74\x31\x36\x56\xd2\x43\xff\x8c\x8b\xa6\x41\x2f\xe1\xca\x8d\x27\xd0\x1b\x78\x19\xc9\x39\xa4\x3a\x33\x99\x04\x71\x13\xc2\x7b\xaf\xbe\x7e\x55\xa9\x02\x40\x56\x1d\x31\xee\x00\xa7\xf7\x97\xe9\xed\xeb\xe7\xfb\x63\x7a\xfd\xc4\x5a\xac\x13\x39\x6f\xec\x28\xe6\x6d\xd3\x36\xed\xac\x6a\xf2\xbd\x33\xc7\x70\x76\xfe\x8e\x8d\x56\x93\xc7\x1d\xdc\x57\x00\x00\xa9\x7c\x45\x56\x03\xc9\x40\xf4\xe4\x4a\xb0\xa8\x47\x67\x7b\xf2\x12\xc7\xc1\x6a\x62\xdf\x88\xdf\x1c\x28\x5c\x33\xca\x1d\xae\xbc\x35\xb3\xb8\x9e\x98\xfa\x20\x3e\x1a\x8d\xf5\xf9\xa1\x5a\x78\x9d\x61\xc2\x7d\xbd\x4e\xb3\x19\x8c\x84\xef\xda\x8d\x6c\x9d\x26\x57\x1e\x49\x80\xbd\xe5\x38\x94\xe5\x7a\x47\x2a\x90\x7e\x50\x41\x80\x76\x59\x5a\x6e\x80\x90\xb7\xe8\xe7\x47\x72\xb4\x2d\x5a\xca\xae\x81\x3e\xa8\x10\xbd\xc0\x4e\x8a\x63\xb9\x07\x8d\xaa\x63\xd2\x08\xb9\xfe\x7f\xee\xb2\xd3\x32\x95\xd2\x8d\x19\x9b\x36\xe7\xb9\x98\x48\x6c\x9e\x08\x21\xaf\x20\xfb\xe5\xff\xa2\x2e\x8d\xd1\xc6\x50\xba\x0a\xc9\xc6\x90\x33\xce\x69\x49\xee\xab\x5c\xfd\x06\x00\x00\xff\xff\x34\x26\x65\xb9\x1d\x02\x00\x00") + +func xiangFlowsTableGetFlowJsonBytes() ([]byte, error) { + return bindataRead( + _xiangFlowsTableGetFlowJson, + "xiang/flows/table/get.flow.json", + ) +} + +func xiangFlowsTableGetFlowJson() (*asset, error) { + bytes, err := xiangFlowsTableGetFlowJsonBytes() + if err != nil { + return nil, err + } + + info := bindataFileInfo{name: "xiang/flows/table/get.flow.json", size: 541, mode: os.FileMode(420), modTime: time.Unix(1632926333, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -285,27 +372,87 @@ func xiangModelsReadmeMd() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "xiang/models/README.md", size: 15, mode: os.FileMode(420), modTime: time.Unix(1631095267, 0)} + info := bindataFileInfo{name: "xiang/models/README.md", size: 15, mode: os.FileMode(420), modTime: time.Unix(1632926333, 0)} a := &asset{bytes: bytes, info: info} return a, nil } -var _xiangModelsUserJSON = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x59\xed\x53\x13\x57\x17\xff\xce\x5f\x71\x67\x1f\xe7\x19\x7d\x9e\x64\xdc\xdd\x20\x86\x7c\x32\x48\x9d\xc1\xb7\x22\xf8\x82\x28\x65\x36\xd9\x9b\xb0\x74\xb3\x89\xd9\x5d\x0c\xa4\x99\x09\xb5\x22\x54\x10\xb4\x50\x64\x4a\x1d\xb5\x82\xb4\xbe\x44\x2a\x23\x19\x94\xf1\x8f\x69\xee\x66\xf9\xd4\x7f\xa1\xb3\x2f\xd9\x2c\xbb\x37\x4b\x02\xb6\x3a\xd2\x4f\x84\x7b\xf7\x9e\xf3\xbb\xbf\x73\xee\x39\xe7\x9e\x9b\x6d\x02\x80\x10\x98\x04\x24\x42\x80\x28\xcf\xae\x28\xe3\xeb\x84\x4f\x1b\x93\x98\x08\xaf\x0d\x6a\x1f\xd8\x3e\x91\x45\x98\xd6\x3f\x00\x80\x88\x26\x13\x09\x28\x48\xd5\x95\xea\xa3\x95\xca\x1c\x14\xe2\x9c\xa0\xaf\xe8\x10\x84\x64\x7b\x1b\xd1\x04\x40\x4e\x17\x1c\x4d\xf2\x72\x42\x10\x89\x10\xb8\xa2\x7f\x9a\x05\x04\xcf\x44\x20\xaf\x7f\xdb\x4e\xf8\xaa\xba\x38\x56\xfb\x4f\x1a\x4e\x41\x73\xce\x90\x00\x4c\x4c\xc0\xb6\x10\xdd\xf9\x16\xcd\x8d\x99\xca\x6d\x70\x13\x8c\x20\xf7\x6b\x72\x2a\x13\x15\x69\x11\x2e\xde\x21\x48\x30\x6e\xed\x46\x93\x06\x85\xb8\x34\x40\x84\xc0\x11\xd2\x1a\xb3\xed\x51\x99\xc8\xa3\xd5\x07\x2e\x4d\x32\xcf\x9b\x54\x49\x69\x19\x5a\xe3\x9c\xc0\xc2\x8c\x73\x70\x88\xe1\x39\x96\x91\xb8\xa4\x6d\xff\xf6\x0d\xe9\x1f\x25\xa0\x34\x90\x64\x35\x8d\x1a\xd8\x64\xcc\xd2\xa5\xcf\x32\xe9\xb8\xbe\x96\xe0\x4c\xf8\x7d\xbe\xed\x8b\x45\x91\x89\xeb\x5b\xcc\x66\x39\x21\x25\x4b\xb9\x5c\x79\xf5\x2d\x7a\x70\x7b\x6b\x76\x41\x2d\x14\x7c\x20\x9b\xd5\x59\xcb\xe5\xd0\xc6\x6c\xa9\xb8\xa1\xcc\xbd\x42\x2f\xe6\x09\x4b\x46\xce\xb7\x13\xaa\x04\x27\xe0\x21\x91\x1e\x50\xaa\x3a\xd1\x93\xa7\xa5\x8d\x3b\xa4\x4d\xa3\xf9\xab\xaf\xc9\xa6\xdf\x6d\x62\x63\x17\x6e\x13\xeb\x16\x75\xd9\x17\x0a\x72\xa2\x3a\x9a\x4c\x69\x9c\xeb\xb4\x31\xac\x8e\x1f\x10\xa2\xc4\xc4\x62\xda\x0f\xdd\xa5\xfb\x70\x16\x57\xd7\x96\xd1\xf4\xba\xa1\x18\xe8\x0b\x41\xf9\xe5\xa3\xf2\xcc\x18\xba\x7b\xdf\x07\x74\x01\x00\xdd\xbd\x8f\xd6\x97\x7c\x40\x93\x02\x6c\x07\x48\x97\xc5\xc2\x18\x23\xf3\xba\x2c\x53\xdd\x3f\xe6\x1e\xa2\x94\xe6\x84\xf8\x9e\xbc\x43\x2d\x2c\x95\x8a\x1b\xe8\xc5\x7c\xf9\xf9\x72\xa9\xf8\x7b\x23\x3e\xb2\x8d\xfe\xed\xc0\x76\x32\x40\x4d\xa0\xa5\xe2\x14\x5a\x5c\x51\x5f\x16\xd1\x74\x41\x9d\xbc\x81\x7e\x5a\xc3\xc1\x35\xec\x74\x58\x17\x7e\x58\x97\xdc\xa8\xa3\x29\x13\xb7\x95\xc5\x0d\x34\xbd\x8e\x09\x27\xc9\x08\xc7\x63\xbc\xcd\x24\xbb\xfe\x48\xe2\xd2\x80\xf5\x87\x68\x7a\x38\xa5\x2f\x08\x7f\xd1\x4d\x7c\x86\x5e\x92\x62\x24\x09\xa6\x6b\x44\x13\xe2\x2b\xea\x4a\xc0\xdf\xda\x77\xf5\x2a\x9b\x6d\xcd\x1d\xa8\x03\xa3\xf2\xf0\x1d\x7a\x37\x6d\x60\x6c\x3c\xbc\x2c\xbc\x45\x9b\x73\xa8\x30\x56\x7e\x38\xea\x36\x7c\x8a\x11\xc5\xeb\xc9\x34\x26\x91\xd4\x34\x3d\x7d\xa4\x05\x67\x7b\xbc\x1e\xcb\xd2\x9d\xe1\xee\xee\x4b\x5f\x76\xb5\xef\x9b\x48\x91\xe0\x84\xd3\x06\x65\x58\x74\x2d\x75\xe5\x14\xb5\xb0\x54\x9e\x5d\x6d\xf1\x53\xc1\xd2\xe6\xd4\x9f\xef\x26\xd1\x93\xa7\xe8\xd5\x34\x1a\x5b\x40\x2f\xe6\x95\xc2\xd4\x1f\xf9\x51\x23\xcd\xa1\x7b\x93\xe5\xe7\x5a\x4c\x57\x1e\x7c\xa7\x8c\xcf\x34\x84\x93\xc9\x78\xe1\xa4\x82\x9f\x0a\x50\xef\x43\x75\x85\xf4\xb7\xf6\xfd\xdf\xcb\xd8\xdb\xc0\xaa\xb7\x5e\xa3\x57\x77\xd1\xe4\x4d\x34\xf3\xac\x54\xcc\x97\x8a\xbf\x35\x5e\x2f\xec\x00\x28\xec\xef\xdd\x13\x20\x8d\xc2\x0a\x7f\x1f\x10\x16\xe3\x1f\xd9\x1b\x2c\x9b\x59\x3f\x20\xac\x63\xff\x39\xf0\xdf\xff\xed\x09\x98\xe1\x57\x0d\xc7\x47\xf4\xf4\x07\x34\x33\xe5\x8e\x8c\xfa\xdf\xfa\xa3\x62\x10\x9b\x10\x9d\xc2\xf7\x77\xcc\xa3\x77\x36\xae\x61\xd6\xad\xc5\xbc\xba\x3c\x4a\x6b\xde\xd6\x60\x09\xef\x1d\xcc\x9a\xeb\xa8\xe4\x4b\xc5\x29\xf5\xc6\xa6\xfa\xe6\xa6\xfa\xfe\x16\x4d\xba\x20\xd4\xe7\x54\xea\xc6\xb3\xd2\xdb\x4d\xb5\x30\xaa\x95\xd9\xb8\xbc\xcb\xb1\x51\xe6\x43\x64\xdd\x9a\x8a\xf0\x25\xd6\x47\xbb\xd4\x7d\xd2\xf5\xd8\x41\xad\x14\xa3\x82\xb9\x43\xdf\x18\xbf\x9a\x73\x3d\x87\x3c\xeb\x32\x13\xd4\x9e\xea\x32\x75\x6d\x59\x19\x5f\x2f\x6d\x2e\x6c\x3d\xfe\xd9\xed\x1f\x11\x86\x67\x84\x28\x26\x00\x71\x35\x2f\xf7\x34\x36\x02\xd9\xd5\x1c\x44\x63\xf3\xa5\xcd\x85\x43\xb8\x7b\x1c\xf9\xef\x05\xdf\xd3\xd6\x7b\xb8\xe0\x87\x3b\x3b\xc0\x29\x38\xec\x36\xf2\xd7\xf6\xc1\xdd\x46\x00\xb7\xf4\x1a\x67\x5c\x16\xb8\x6b\xb2\x6b\x74\xdf\x1c\x72\xad\x40\x0c\xfb\x7b\x19\xff\x88\x51\x6a\x64\x83\x5e\x77\x2f\x27\xa8\xf2\xec\xea\xae\x2b\xdb\xfa\xbd\x04\x15\xc6\xb6\xee\x2d\xb9\x1d\x45\x84\xd1\x34\x94\x76\xe9\x2b\xb5\xfc\x01\x9f\x21\x1c\x9e\xe5\x44\xb4\xbf\x13\x85\xcb\x87\x02\xb4\xf7\x05\xde\xe9\x43\x01\xfa\xef\x75\xa2\xf2\xcb\x3c\xba\x83\x69\x17\xa7\xa1\x28\xe3\xca\x59\x09\x66\x24\xac\xed\x5d\x82\xb6\x3b\x91\x37\x0a\x65\xe2\x57\xb4\x3a\x57\x7a\xff\x48\x19\x2d\xb8\xb1\xc0\x8c\x94\x66\xdc\x50\x06\xc5\xa4\x80\x85\x52\x43\x5a\x23\x80\xca\xdf\xbf\x51\xf2\xa3\xf8\x8d\xea\x9d\x4d\xe3\x03\x00\x05\x4d\x24\x0b\x94\xc5\x09\x65\x6e\xdc\x07\x58\x4e\x34\x07\xe6\x1f\x2a\x73\xe3\x98\x83\x29\x31\x92\x2c\xee\xd4\xa5\xb5\x75\x4b\x4d\x0d\xd8\x0e\xae\x35\x07\x88\x8a\x62\x5b\xfb\xf6\x33\x3f\x79\x1e\x8d\x55\x4f\x5e\x6a\xa2\xac\xb3\xab\x6a\x0a\x3f\x6c\x49\xae\x75\xe4\x9a\x00\xd0\x95\x12\x69\xc8\x5b\x8c\x67\x8d\xa7\x9f\x21\x86\x97\xa1\xed\xe5\xc7\xe9\x26\x56\x73\xbd\x6a\xf7\xca\x03\x4e\x08\x50\x2e\xef\x31\x3b\xc9\x96\xe5\x8d\xbb\x42\x08\x10\x74\x80\x6c\xa1\x9b\xa9\xd6\x60\x80\xa4\xa8\xa3\x24\x49\x1d\xb1\x09\x34\x5a\xb8\x21\x40\x50\x81\x56\x92\x24\x49\x8a\xa2\xa8\xea\xb4\xd5\xe8\x0b\x01\x22\x3a\xd4\x7d\xea\x58\xd7\xe5\x96\xea\xac\x56\x89\x84\x00\x71\xa2\x2d\x10\xcb\x1c\x87\xe7\xaa\x13\x66\xe6\x09\x01\xa2\xe7\xcc\x79\xf6\x6c\xd7\x45\x2e\x1e\x89\x5f\xe0\xc2\x9d\x2c\x77\xf2\x78\x8c\xb9\x14\xbf\x14\x1d\xa1\x3b\x99\x73\x3d\xd7\x6d\x6b\x8c\x43\x81\xf3\x76\xe3\xec\x87\x40\x56\x93\x9c\x31\xce\xdf\x3a\x61\x52\xed\x3c\xbe\x15\xf6\x8c\x97\x88\xfa\xa8\x73\xbe\x46\xd8\xa9\x0b\xd2\x2d\x54\x6b\x90\x26\x69\xf2\x28\x49\x37\xf7\x78\x50\x47\xd3\x34\x8d\xa7\xee\xda\xc5\x63\xf2\x79\xaa\xbd\xc3\x45\xdd\xc9\xf6\x01\xba\x97\xbb\x20\xe1\xa8\xbb\xde\x06\x2f\x0f\x9e\x3e\x7a\x62\x30\x12\x1d\x4a\x85\xd9\xb6\x74\x46\x6a\x3f\x11\x1b\x1c\x66\xc5\x64\xe7\xa9\x81\xae\xb3\xbb\xa4\x0e\x2d\xbd\xde\x89\x3a\xe7\xbb\x4d\x95\x3a\xda\x45\x9d\xed\x05\xd4\x8b\x39\xd2\x93\xb9\x40\x20\x10\x68\x90\xb9\x9e\x5e\x8a\x3e\xc3\x75\x8e\x7c\x24\xe6\xac\x73\xad\x07\x58\xdc\x29\xb6\xf7\x73\xf4\x47\x52\x27\xab\x8e\x47\xd9\x7e\x83\x95\x7e\xb3\xe0\xb6\x65\x1d\xeb\x81\xb8\xfa\x7e\x6b\x71\xd8\xe7\x36\x88\xb1\x1e\x6b\x60\x57\xaa\x46\x37\x57\x94\x1f\x6f\x29\xbf\xe4\xcb\x6b\x8f\x6b\xe5\xff\xfe\x98\xcc\xf3\xce\x94\x5f\xc5\x64\x16\x09\x6e\x20\xd6\x32\x07\x63\x56\xee\xca\x02\x42\xe2\x12\x50\x94\x98\x44\x4a\xac\xe4\x28\x40\x88\xc9\x98\xd4\xcf\x42\x1e\x4a\xb0\x32\x0a\x72\x4d\xb9\xa6\xbf\x02\x00\x00\xff\xff\xdf\xdf\x90\x77\x9c\x1f\x00\x00") +var _xiangModelsMenuJson = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xdc\x98\xdd\x4e\x1b\x47\x14\xc7\xef\xfd\x14\xa3\xb9\x36\x05\x0c\xfd\xb0\x2f\x2b\x6e\xb8\xe8\x13\x54\x51\x34\xde\x3d\x5e\x8f\x98\x9d\x75\x77\x66\x69\x2c\x84\x44\xa9\x9a\x58\x6e\x69\x68\x45\x44\x55\xdc\x24\x54\xad\xca\x4d\x0b\x51\x23\x4a\x49\x4a\x5f\x86\xb5\xcd\x5b\x54\xfb\xbd\xf6\xce\xae\x81\x12\x19\xb8\xe1\xe3\xcc\xd7\xf9\x9d\x39\xf3\x3f\xb3\xb3\x56\x42\x08\x73\x62\x02\xae\x21\x3c\x7c\xda\x73\xb7\x9e\xe1\xb2\x67\x93\xa4\xce\x3c\xa3\xd7\x21\xd5\xe5\x11\x25\xdc\x78\x68\x02\x77\xfc\x6e\x08\x61\xcd\x32\x4d\xe0\x32\x19\x3f\xdc\x3f\x88\xda\x80\x1b\x94\xfb\xe3\x96\x39\xb7\x96\x3e\xc6\x25\x84\xd6\xfd\xe9\x35\x8b\x39\x26\x17\xb8\x86\x3e\xf5\xbb\xae\x25\x4b\x50\x1d\x97\x11\x96\xed\x56\x30\x70\xc9\xfb\x2f\xb5\xc8\xf2\x12\x0e\xe6\x40\xa1\x6f\x29\xef\x5a\xc4\xf6\x7a\x95\x23\x7b\x34\x49\x9d\x1a\xcb\x5c\x82\x01\x76\xd2\x96\x9a\x72\xd0\x39\x1e\x76\x37\x07\x9b\x7f\x27\xad\xdc\x61\x2c\x8c\x80\xb4\x1d\x88\xed\x94\xeb\xf0\x28\x34\xfa\xb6\x3c\x57\xfc\xdf\x19\x47\x84\xb4\x29\x37\x12\x3b\x03\x6e\xc8\x26\xae\xa1\xca\xdc\x9c\xca\x33\x77\x7b\x6b\xf0\xdb\x11\xbe\xfa\xf2\x54\xb3\xf8\x0d\x2c\xbf\x77\xd6\x7f\xf9\x24\x37\x2a\x85\x1e\xd4\x99\xa5\xad\x08\xc5\x5e\x58\x16\x03\xc2\x95\x1b\xe1\x8f\x71\x4f\xbe\x74\x5f\x6d\x24\xed\x3a\x34\x88\xc3\xbc\xf6\x06\x61\xe2\x1a\x5b\xb1\x4a\x05\xad\x33\x48\x67\xed\x25\xfd\xe9\xff\x70\x36\xf8\xe5\xf4\x06\x5d\x69\x11\xd9\xfc\xff\xdb\x32\xfc\xeb\x70\xb0\xf3\xea\x1a\x59\x61\x13\xbe\x92\x5d\x9e\x8e\x1f\x8d\x04\xb3\x5a\xad\x56\x95\x81\xf9\xf6\x7b\xb7\xb3\x7b\x0d\x0f\x84\x24\xd2\x51\x64\x05\x70\xc7\x54\x39\x80\x81\x7b\x09\xa7\x27\x6d\x56\x4b\x52\x8b\x7b\xc2\x91\xb4\x21\xac\x53\x11\xfc\xfd\x40\x19\x30\x5f\x98\x06\xdd\xe3\xfe\xc6\x17\x28\x1c\x85\xdc\xb7\x1b\xee\xf6\x61\x19\x45\x43\x91\xfb\xd5\x9f\x17\xbb\xbf\x17\x41\x95\x10\xf2\xe7\xc7\x36\x30\xe2\xb9\x21\x12\x85\xd4\x9a\x94\xe9\x36\xf0\xd8\x92\xa2\x6b\x12\xf1\x09\xe1\xed\x64\x6a\xd3\xd2\x81\xc5\x7a\xfa\xde\x68\x66\xae\x40\x5b\x25\x66\x0d\xcb\x06\x6a\xf0\x48\x22\x23\xf3\x67\x0e\xd8\xed\xd4\xa2\x08\x61\x01\x0c\x34\xe9\x87\x28\x90\xa1\x48\x0f\x92\x53\x19\xa5\x62\x94\x13\xf1\xce\x3c\x08\xa7\x59\x8f\x89\x03\xc1\x5e\x25\xcc\x81\x94\x5e\xc7\x41\xd2\x71\x0d\xcd\x97\xc7\xf7\xb9\xff\xec\xa8\xbf\xf5\xc7\xa0\xf7\x75\xff\xa7\x7f\x53\x11\xd5\x2c\x1e\xa9\xd3\x0c\xd1\x24\x5d\xa5\x32\x15\x15\xdf\xa5\x1a\xc2\xb3\x2b\x84\xd7\xd3\x47\x32\x0c\x45\x0d\x79\x02\x14\x5b\x47\xce\xf5\xf8\x91\x0c\x41\xc7\xcd\x3e\x6d\x0d\xcd\x2b\x93\xd4\x67\xa9\xe4\xb0\xb8\x9d\xc7\xfd\xe7\xdb\x39\x2c\x2d\x0a\x33\x5a\x93\xd8\x52\x01\x33\x66\x2f\xf4\x5a\x0d\x5a\xcc\x52\xc9\x67\x59\xc8\x61\x19\xee\x1f\xf4\x5f\xbe\xcd\x61\x31\xec\x74\x7a\xc5\x18\xc1\x85\xe0\xdd\x61\x2c\xe4\x63\x2c\x66\x30\xdc\xd3\x9d\xc1\xce\x81\x7b\xb2\xe9\xf6\x4e\xa7\x86\x31\x72\x31\x08\x29\x16\xf3\x29\xde\xcf\x50\x0c\xff\x39\x3c\x7f\x73\xdc\xef\x6d\xb9\xdd\xfd\xe0\xe7\xf0\xf5\xc1\xc5\x93\xa7\xe3\xa9\x36\x9a\x4a\xb3\x82\x91\x0c\xf3\xe5\x0f\x46\x0c\x55\xb9\xe4\xc6\x78\x35\x20\x9f\xea\x83\x42\x2a\xb7\x77\xe4\xbe\x78\x31\x81\x87\xd8\x70\x8b\x80\x3e\x2c\x06\x7a\xbe\x39\xd8\x7b\x7d\xf1\xf3\xe3\xc9\x58\x0d\x0a\x4c\x17\xb7\x07\xec\xa3\x42\xb0\xe1\xfe\x37\xe7\x27\x3f\x4e\x40\xa2\x5c\x77\x84\xb4\xdb\xb7\x07\xaa\x5a\x08\x75\x7e\xb6\x77\xd1\xdb\x98\x00\xc5\x01\x6e\xd3\x36\xcd\x2b\x8a\x69\x4a\x1b\x14\x18\x02\xec\x55\xaa\x81\x52\x17\x02\x2d\xd4\x2c\xb3\x45\x84\xb8\xaa\xec\x2d\xde\x0c\x50\xb6\xa2\x4e\x90\x85\x08\x48\x29\x0c\x21\x91\x6d\x09\xd1\x24\xd4\x9e\x12\x53\xb6\xb2\xa6\x95\xa1\x80\x29\x47\x15\x02\x2a\xd1\xb4\x5a\x2d\xca\x8d\x99\x3a\x31\xa6\x04\x96\xad\xb5\x13\x94\x21\x02\xcb\xd5\x86\x00\xed\x73\xca\xf5\x29\x21\x65\x0b\xef\x04\x5d\x88\x90\xd4\xca\x10\xde\x5e\xb9\xd6\xb4\xa6\x95\x7d\xd9\xa2\x7b\xc7\x25\x22\x5b\x74\xef\xbe\x44\x64\xeb\xed\x3d\x91\x08\x45\xcd\xbd\xe3\x12\x51\x99\xbb\x6f\x12\x51\x51\xdc\x22\xba\xbf\xba\xdf\x75\xdd\xce\x6e\xf2\x40\x9b\x26\xaa\x3b\xc6\x2c\xa3\x42\xe6\xc0\x8c\x36\x8d\xa1\x8c\x7c\x09\xc5\x24\x0b\x37\x43\xa2\xb8\x3e\x74\xf6\xdc\x37\xa7\x01\x4f\x0e\x89\x66\x03\x91\x90\xf7\xb5\xce\x9c\x2b\x0b\xdd\xd5\x61\xe2\xc7\x22\xff\x1d\x29\x78\x3b\x09\x0c\xf1\x13\xd6\x1a\xc2\x92\x9a\x20\x24\x31\x5b\xf1\x17\x25\xc2\xc2\x6a\xc8\x87\x3a\x30\x90\x10\x59\xd1\x7a\x69\xbd\xf4\x5f\x00\x00\x00\xff\xff\x2f\x9d\x83\xca\xad\x17\x00\x00") -func xiangModelsUserJSONBytes() ([]byte, error) { +func xiangModelsMenuJsonBytes() ([]byte, error) { return bindataRead( - _xiangModelsUserJSON, - "xiang/models/user.json", + _xiangModelsMenuJson, + "xiang/models/menu.json", ) } -func xiangModelsUserJSON() (*asset, error) { - bytes, err := xiangModelsUserJSONBytes() +func xiangModelsMenuJson() (*asset, error) { + bytes, err := xiangModelsMenuJsonBytes() if err != nil { return nil, err } - info := bindataFileInfo{name: "xiang/models/user.json", size: 8092, mode: os.FileMode(420), modTime: time.Unix(1631095267, 0)} + info := bindataFileInfo{name: "xiang/models/menu.json", size: 6061, mode: os.FileMode(420), modTime: time.Unix(1632926333, 0)} + a := &asset{bytes: bytes, info: info} + return a, nil +} + +var _xiangModelsUserJson = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x5a\x6f\x53\xd4\xd6\x17\x7e\xcf\xa7\xb8\x73\x7f\xce\x6f\x6a\x5d\xca\x66\xf9\x23\xec\x2b\xb1\xd4\x19\xab\xb5\x54\x6a\xb5\x0a\x32\x61\x73\x77\x0d\x66\x93\x35\xc9\x2a\xb8\xdd\x19\xa8\x15\xb1\xb2\x03\x2a\x0c\x32\xa5\x8e\xce\x14\xa5\x55\x59\xa8\x8e\xec\xa0\x8c\x1f\xa6\xb9\xd9\xf0\xaa\x5f\xa1\x93\xdc\x24\x9b\x6c\xee\xfe\x83\xed\x8c\x55\x5e\xb1\x9c\xe4\x9e\xf3\x9c\xe7\x3c\xf7\xdc\x6c\xce\x66\x5a\x00\x80\x22\x9b\x44\x30\x0a\x60\x71\x7e\x55\x9f\xde\x84\x21\xd3\xa6\xb2\x23\x82\x69\x34\x6f\xf0\xdc\x32\xc6\xb3\x62\x62\x38\xad\x20\xd9\xba\x0d\x00\x18\x93\x92\x49\x24\xaa\xa5\xf5\xc6\xe3\x55\xe7\x1a\x12\x13\xbc\x68\xad\x3b\x2e\x8a\x52\xdf\x51\xd8\x02\x40\xd6\x72\x1f\x93\x84\x74\x52\x54\x60\x14\x5c\xb0\x6e\xcd\x00\x28\xb0\x23\x48\xb0\xee\xed\x83\xa1\x52\x44\x9e\x33\xff\x53\xc7\x53\xc8\xbe\x46\x3c\x00\x1b\x19\xf0\x2c\x2c\x6e\xbc\xc1\x0f\xef\xd8\xc1\x3d\xa0\xad\xc5\xae\xd5\x71\x85\xc4\x74\xb2\x64\x95\x52\x2a\x2f\x89\x26\x1e\xc8\x72\x49\x5e\x34\x83\x2a\x2a\x1b\x8f\x9b\x1f\x48\xbe\x00\xca\xd2\x88\xa4\xc2\x21\x77\x91\x27\x77\xe3\xd5\x13\x3c\xbb\x49\x10\x00\xcb\x03\x28\xae\x3d\x2e\xce\x4d\xe1\xbb\x0f\x42\xc0\xf2\x04\xf0\xdd\x07\x78\x73\x25\x04\x4c\x77\x80\x90\x15\x02\x96\x4f\xa0\x2f\x6f\xe1\xa5\x55\x6d\x6b\xab\x84\x88\x43\x71\x36\x2d\x58\xce\x3d\x7c\x03\x00\x79\x91\x43\x63\x30\x0a\x54\x39\x8d\x5c\xe3\x55\x56\xe0\x39\xd6\xcc\xa1\x44\xaa\x97\x25\xeb\xa6\x24\x52\x2f\x49\x9c\x43\x89\x14\x77\x7d\x5a\x57\x59\x39\x61\xad\x85\x8a\x2a\xf3\x62\xa2\x94\xa7\xbd\x56\x51\xd8\x84\xc5\x5c\x26\xc3\x8b\xa9\xb4\x9a\xcd\x92\x74\x77\xe6\x97\x8c\x7c\x3e\x04\x32\x19\xab\x12\xd9\x2c\xde\x9a\x37\xf2\x2b\x5a\x61\x0b\xbf\x58\x2c\x3e\x7f\xa2\x15\xfe\x84\xae\xa7\x6c\xa8\x16\x34\x5f\x5d\xfc\xc0\xea\xae\x4c\x45\xc4\x5a\x21\x87\x97\x57\x8d\xb5\x02\x9e\xcd\x1b\x33\x37\xf0\x2f\xaf\x68\xb8\x49\x01\xdb\xac\x28\x6d\x66\x88\x36\xe2\xbf\x94\x85\xfd\x69\xa8\xc5\x93\x53\x50\x90\x3b\x3f\xae\x15\xd7\x36\x82\x82\x44\x49\x96\x17\x82\x8a\xb4\x79\x77\xed\x02\x12\x13\xea\x25\x18\x05\x9d\x61\x9a\xe4\xca\xbd\x53\x75\x21\xa6\x05\xc1\xde\xca\x1f\xaa\x5e\x7c\x64\xfa\x90\xd5\xa5\x07\xfd\x41\x9e\x30\x89\x97\xd7\xf1\xaf\x13\x0d\x17\x59\xbf\x7d\xc7\xdc\xbd\xb3\x9b\xc1\x3a\x27\xa5\x11\x5e\xa0\xb4\x9e\x06\x0b\x4d\x89\xd0\x50\xad\x63\xf2\x78\xca\x72\xd4\xfb\xc5\x00\xdc\xad\x02\xca\x72\x69\x90\x67\xfd\xd1\x5b\xfc\x76\x96\x54\xbe\x61\x86\x8b\x4b\x6f\xf0\xf6\x02\xce\x4f\x15\x1f\x4d\x06\x49\x4e\xb1\x8a\x72\x4d\x92\xb9\x06\x68\x8e\x74\x76\xd1\x78\xa6\xc7\x71\xd9\xeb\xef\x1d\x18\x38\xfb\xf5\xe9\xbe\x8f\x7e\xc7\x25\x79\xf1\x24\xa1\x92\x8a\xae\xab\x0a\x2c\x5f\xfc\xe2\xfc\x46\x57\x2b\xd3\xad\x6d\xe7\xfe\x7e\x3b\x83\x7f\x7b\x8a\xd7\x67\xf1\xd4\x12\x7e\xb1\xa8\xe7\x73\x7f\x4d\x4c\xea\x0b\xeb\xf8\xc5\x22\xbe\x37\x53\x7c\x6e\x9e\xad\xfa\xc3\x9f\xf4\xe9\xb9\x86\x70\xb2\x63\xd5\x70\x32\xdd\xef\x0b\xd0\x14\xab\xaa\x48\x16\x2b\x14\xfb\x42\xb8\xb5\x67\xe8\x50\xb5\x62\xfb\xc0\x1a\xb7\x5e\xe2\xf5\xbb\x78\xe6\x26\x9e\x7b\xa6\x15\x26\xb4\xc2\x1f\x04\x5f\x13\x01\xf5\xb6\x9e\xdf\x13\x20\x93\x42\x87\xbf\x26\xc2\x62\x5b\xaf\xef\x0d\x96\xa7\xac\x4d\x84\x75\xe4\x7f\x07\xfe\xff\xe9\xe0\xe0\xa1\x3d\x61\x23\xd2\x6a\xfc\x70\xba\x9f\xd3\xb6\x97\x6b\xb5\xce\x88\xd8\x84\xee\x49\x0f\xb5\xdf\x3d\xcb\xa1\xed\x77\xcf\xfd\xee\xb9\xdf\x3d\xff\x13\xdd\x13\x3f\xbd\x8f\xe7\x72\xc1\xbe\x69\xfd\xad\xbf\x61\x76\x53\x9f\xea\xcb\x9d\xef\xb7\x43\x1a\xba\x48\xed\xa2\x93\x72\xef\x2c\x4f\x18\x4f\x26\x23\xa6\x10\x1b\xdb\xad\x35\xfa\x5c\x47\xb8\x36\x02\xad\x90\x33\x6e\x6c\x1b\xaf\x6f\x1a\xef\x6e\x45\xc2\x01\x08\xf5\x89\xcd\xd8\x7a\xa6\xbd\xd9\x36\xf2\x93\x78\x76\x93\x7a\x5a\xf3\x5c\x8c\x6d\xc6\xd7\x9c\x8a\x81\xe8\xdf\x13\x2b\x49\xf0\x03\x7f\x0d\x55\xbd\x2d\x5d\xfc\x64\x70\x90\xcb\x30\xdd\xd9\x83\x3f\x90\x4f\x1d\xd9\x73\x07\x0f\xd4\xd1\xa1\xf6\xf4\x45\xb8\xb7\xff\x38\x38\x81\xc6\x83\xd2\xb8\xec\x35\xee\x56\x17\x41\xef\x15\x2a\x9f\x16\xf9\x2b\xe9\x7f\xb5\x25\xf1\xa2\x8a\x12\x48\x6e\x42\xed\x9b\x7d\x7a\x5f\xb4\x9e\x27\x32\x4c\x38\x5b\xa5\xda\xe5\x38\x8a\xf3\x1b\x4c\x58\xdb\xce\x11\x30\x81\x27\x9c\xfa\x8b\x8f\xf3\x53\x3b\xf7\x56\x82\xf5\x57\x50\x4c\x46\xea\x2e\x25\xd0\xd8\x6b\xa3\x32\xc1\x94\x23\xfa\xb8\xbb\x82\x29\x8e\xde\xd6\xf3\x6c\xeb\x75\xeb\xb1\x65\x28\xd3\x1e\xa9\xa6\x93\xa0\x4c\xda\x23\xbb\x7d\x4c\xae\x4f\x44\xfa\xed\xdf\xf1\xc6\x82\xf6\xee\xb1\x3e\x99\xa7\xbc\x97\x1e\x53\x65\x36\xa8\xa2\x51\x45\x12\xa9\x02\xa8\xe0\xcd\xaf\xa7\xea\x80\x8a\x3f\xbf\xd6\x27\x26\xa9\xde\xc9\x84\x84\xdc\x00\x90\x68\xba\xe4\x80\xbe\x7c\x5b\x5f\x98\x0e\x01\x8e\x57\x6c\xc3\xe2\x23\x7d\x61\x9a\xb2\x25\x54\x56\x4d\x2b\xb5\xc6\x3e\x9e\x21\x8b\x1d\x81\x3a\x12\x72\xaf\x01\xe8\x04\xf6\x8c\x81\x3e\x70\xcd\x57\x19\xc8\x54\xe5\xa5\x22\xca\x3a\x87\x30\xb6\xf3\x36\xd7\x73\x25\xb1\xb7\x00\x60\x05\x85\x32\x12\x5c\xc6\x33\x64\xd0\x78\x95\x15\xd2\xc8\x33\x67\x2c\x97\x89\x3b\xa4\x0b\x2a\xc5\x9e\x36\x39\x66\x32\x67\x70\x66\xa0\x47\xf8\x2b\x97\xd9\xcf\x62\x92\x47\x4b\xf6\x1b\xf2\x28\x30\x37\x80\x6b\x75\x5f\x4f\x9b\x0d\x93\x89\xb4\x77\x74\x76\xa5\x0e\x95\x16\x99\x27\x77\x14\xc0\xee\xf6\x70\x47\x4f\xa4\x93\x39\xdc\x55\xba\x64\x37\xf5\x28\x80\xe7\xbe\xfa\x96\x3b\x75\xfa\x3b\x3e\x31\x92\x38\xc3\xf7\xf6\x73\xfc\x97\x9f\xc7\xd9\xb3\x89\xb3\xb1\xeb\x91\x7e\xf6\x9b\x73\xd7\x3c\x6b\x88\xea\x69\x72\x26\x9b\x3b\x0a\x32\xa6\xe7\x31\xb2\xc1\x36\xa1\xcd\x65\xf9\xfe\x74\xe8\x21\x23\x4b\xda\xc1\x62\x0d\xe0\x02\xdc\x58\xf6\x5d\x71\x33\x50\x89\x1b\xdf\x0a\x97\x13\xbf\xb5\x91\xac\xf1\xca\xcb\x5a\x59\x7b\x06\xe1\xbe\xac\xfd\x73\x58\x27\x69\x1f\x14\x37\x51\xc8\xb4\xf7\x84\xc3\xe1\x30\xc3\x30\x0c\xa4\x66\x7c\xe6\x3d\xca\x98\x32\x7f\x76\x92\x26\xa3\xcf\x3a\xb3\xae\x54\x5e\x9f\xdd\xd6\x7c\x7b\x77\x47\x27\xd3\xd3\x15\x3e\x1c\xa1\x69\xfe\xda\x51\xf4\xfd\xe8\xc9\xc3\xc7\x46\x47\x62\x57\x53\xbd\xdc\x51\x79\x4c\xed\x3b\x16\x1f\x1d\xe7\x14\xa9\xff\xc4\xa5\xd3\xa7\x76\xa9\x79\x2f\x17\x6e\xdf\xb0\x1a\x38\xad\x4b\x78\x4f\x23\xd2\x5a\xc9\xa4\x70\x3e\xaf\x15\x26\xe8\x3f\x34\x18\xb6\x08\x1a\xb6\x9f\x91\x3d\xe7\x9a\xfb\x83\x07\xfb\xf7\x08\x0e\x95\x43\x41\x99\x91\xb5\xd4\x82\x05\x10\xb9\xc3\xc1\xaa\xa0\x48\x81\xea\x42\x65\xd7\xb2\x06\x2c\x97\x3b\xf7\x94\xcc\x00\xa8\xf2\x49\xa4\xa8\x6c\x32\xa5\x38\xa7\x21\x80\x8a\x14\x57\x87\x39\x24\x20\x15\x39\x56\x90\x6d\xc9\xb6\xfc\x13\x00\x00\xff\xff\x2b\x52\x7c\x27\x7a\x22\x00\x00") + +func xiangModelsUserJsonBytes() ([]byte, error) { + return bindataRead( + _xiangModelsUserJson, + "xiang/models/user.json", + ) +} + +func xiangModelsUserJson() (*asset, error) { + bytes, err := xiangModelsUserJsonBytes() + if err != nil { + return nil, err + } + + info := bindataFileInfo{name: "xiang/models/user.json", size: 8826, mode: os.FileMode(420), modTime: time.Unix(1632926333, 0)} + a := &asset{bytes: bytes, info: info} + return a, nil +} + +var _xiangTablesReadmeMd = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x52\x56\x78\x36\x75\xc3\xb3\xde\x75\x2f\x16\xae\x78\xb6\x60\x0f\x17\x20\x00\x00\xff\xff\x11\x5e\x34\x14\x0f\x00\x00\x00") + +func xiangTablesReadmeMdBytes() ([]byte, error) { + return bindataRead( + _xiangTablesReadmeMd, + "xiang/tables/README.md", + ) +} + +func xiangTablesReadmeMd() (*asset, error) { + bytes, err := xiangTablesReadmeMdBytes() + if err != nil { + return nil, err + } + + info := bindataFileInfo{name: "xiang/tables/README.md", size: 15, mode: os.FileMode(420), modTime: time.Unix(1632926333, 0)} + a := &asset{bytes: bytes, info: info} + return a, nil +} + +var _xiangTablesUserJson = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xac\x53\x4d\x6b\xdb\x40\x10\xbd\xeb\x57\x0c\x7b\x4e\x4d\x0a\xc5\x07\xff\x8d\x1e\x7a\x08\x3e\xac\xb5\x63\x67\x60\xb5\x5a\x76\x57\x4e\x4d\x30\xb4\xb7\x96\x50\x5a\x68\x29\x3d\xf4\xcb\xa7\xf6\x52\xda\x9c\x02\x4e\x21\x7f\xc6\x92\xfb\x33\xca\x4a\xb2\xb4\x72\x44\x13\x43\x75\xd3\x9b\x37\xb3\x3b\xfb\xde\x3b\x8f\x00\x98\xe2\x09\xb2\x11\xb0\xed\xbb\xef\xc5\x8b\x2b\x76\xe4\xb1\x39\x1a\x4b\xa9\xf2\xf0\xc3\xc1\xf1\xe0\xb8\x42\x05\xc6\x86\xb4\xab\x0b\x7f\x2e\x57\x9b\xdf\x5f\xc3\xae\x09\x29\xc1\x46\xe0\xa7\x02\xb0\x24\x15\x28\x3d\xf1\x29\x71\x35\x1b\x64\x16\x0d\x8b\x00\x96\x25\x95\x6b\xb2\x9e\x5a\xfd\xc5\xa9\xcc\x12\x15\x00\x53\x92\x0e\x4d\x00\x48\xb2\xae\x1d\xad\x0d\x25\xdc\x2c\xfc\x70\x12\xe5\xd9\x9e\xc2\x17\x69\xd6\x92\x3a\x63\x4f\x6a\x08\xe0\xbc\x5d\x38\xff\xf6\x36\x7f\xf3\x8a\x1d\x01\x3b\x23\xe1\x4e\xd9\x08\x86\xd5\xed\x6e\x31\xb7\x97\xd7\xf9\xe7\x8b\xfb\x30\x8b\x97\x17\xc5\xc7\x75\xfe\xfa\x2a\x24\x3f\x82\x65\xcd\x1d\xef\x9a\x82\x0d\x4f\xee\x6a\x1f\xc2\x72\x5c\xb6\xd5\x47\x32\x1e\x7b\x0d\x6c\x67\x55\x83\xdc\x61\x80\x00\x30\xb7\xd0\xe5\xd0\x49\xe6\x5c\xaa\x58\x7b\x5f\xa6\x4d\xaa\x6d\x87\x5c\xbe\xdf\xa4\xd2\xab\x78\xff\x2b\xbf\x5e\x07\xc2\x36\x14\x8a\x2b\xe9\xa7\xdc\xc2\x94\x3f\xd0\x32\xb3\xac\xa9\xef\x76\x6c\x1e\x86\xcd\x09\xcf\x1a\x09\x4b\x04\x05\xb9\x2e\x42\x89\x4e\xcd\x1e\x96\x69\x51\x2f\xd3\x62\x02\x25\xee\x63\xa4\x2c\xf6\xf7\x3e\x39\x45\xd3\x3b\xa0\xa7\x50\x75\x3c\x46\x89\xb1\xeb\x6b\xe9\xab\x68\x3e\x23\xc5\xeb\x24\x04\xb8\x45\xe7\x48\xcd\x4a\x30\xda\x3d\x4a\xe5\xe0\xdd\xea\x07\x39\x78\x4a\x28\x85\x45\xd7\xb5\x70\x28\x89\x23\x27\x2b\x37\x7f\x59\x6f\x57\xcf\x36\x37\xab\xe2\xf9\xcf\xae\x6a\x02\x6d\x98\xdb\x6e\xb1\x2f\x23\x70\x50\x4e\xe0\xa0\xac\xc0\x3d\xf2\x32\x6c\xbc\xe4\xbf\xf1\x2d\x87\xdd\x9d\x06\xae\xe2\xd2\xcb\xa1\x34\x7c\xfe\x9f\xf2\xb1\xb9\xf9\x94\xff\xf8\xf0\x2f\xe3\x07\x66\xdd\x73\xc1\x9e\x65\xdb\x88\x44\xcb\xe8\x6f\x00\x00\x00\xff\xff\x42\x62\x48\x5d\x8e\x05\x00\x00") + +func xiangTablesUserJsonBytes() ([]byte, error) { + return bindataRead( + _xiangTablesUserJson, + "xiang/tables/user.json", + ) +} + +func xiangTablesUserJson() (*asset, error) { + bytes, err := xiangTablesUserJsonBytes() + if err != nil { + return nil, err + } + + info := bindataFileInfo{name: "xiang/tables/user.json", size: 1422, mode: os.FileMode(420), modTime: time.Unix(1632926333, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -362,13 +509,20 @@ func AssetNames() []string { // _bindata is a table, holding each asset generator, mapped to its name. var _bindata = map[string]func() (*asset, error){ - "ui/index.html": uiIndexHTML, + "ui/index.html": uiIndexHtml, + "xiang/.DS_Store": xiangDs_store, "xiang/apis/README.md": xiangApisReadmeMd, - "xiang/apis/sys.http.json": xiangApisSysHTTPJSON, + "xiang/apis/table.http.json": xiangApisTableHttpJson, + "xiang/apis/user.http.json": xiangApisUserHttpJson, + "xiang/apis/xiang.http.json": xiangApisXiangHttpJson, "xiang/flows/README.md": xiangFlowsReadmeMd, - "xiang/flows/table/get.flow.json": xiangFlowsTableGetFlowJSON, + "xiang/flows/menu.flow.json": xiangFlowsMenuFlowJson, + "xiang/flows/table/get.flow.json": xiangFlowsTableGetFlowJson, "xiang/models/README.md": xiangModelsReadmeMd, - "xiang/models/user.json": xiangModelsUserJSON, + "xiang/models/menu.json": xiangModelsMenuJson, + "xiang/models/user.json": xiangModelsUserJson, + "xiang/tables/README.md": xiangTablesReadmeMd, + "xiang/tables/user.json": xiangTablesUserJson, } // AssetDir returns the file names below a certain @@ -413,22 +567,31 @@ type bintree struct { var _bintree = &bintree{nil, map[string]*bintree{ "ui": {nil, map[string]*bintree{ - "index.html": {uiIndexHTML, map[string]*bintree{}}, + "index.html": &bintree{uiIndexHtml, map[string]*bintree{}}, }}, - "xiang": {nil, map[string]*bintree{ - "apis": {nil, map[string]*bintree{ - "README.md": {xiangApisReadmeMd, map[string]*bintree{}}, - "sys.http.json": {xiangApisSysHTTPJSON, map[string]*bintree{}}, + "xiang": &bintree{nil, map[string]*bintree{ + ".DS_Store": &bintree{xiangDs_store, map[string]*bintree{}}, + "apis": &bintree{nil, map[string]*bintree{ + "README.md": &bintree{xiangApisReadmeMd, map[string]*bintree{}}, + "table.http.json": &bintree{xiangApisTableHttpJson, map[string]*bintree{}}, + "user.http.json": &bintree{xiangApisUserHttpJson, map[string]*bintree{}}, + "xiang.http.json": &bintree{xiangApisXiangHttpJson, map[string]*bintree{}}, }}, - "flows": {nil, map[string]*bintree{ - "README.md": {xiangFlowsReadmeMd, map[string]*bintree{}}, - "table": {nil, map[string]*bintree{ - "get.flow.json": {xiangFlowsTableGetFlowJSON, map[string]*bintree{}}, + "flows": &bintree{nil, map[string]*bintree{ + "README.md": &bintree{xiangFlowsReadmeMd, map[string]*bintree{}}, + "menu.flow.json": &bintree{xiangFlowsMenuFlowJson, map[string]*bintree{}}, + "table": &bintree{nil, map[string]*bintree{ + "get.flow.json": &bintree{xiangFlowsTableGetFlowJson, map[string]*bintree{}}, }}, }}, - "models": {nil, map[string]*bintree{ - "README.md": {xiangModelsReadmeMd, map[string]*bintree{}}, - "user.json": {xiangModelsUserJSON, map[string]*bintree{}}, + "models": &bintree{nil, map[string]*bintree{ + "README.md": &bintree{xiangModelsReadmeMd, map[string]*bintree{}}, + "menu.json": &bintree{xiangModelsMenuJson, map[string]*bintree{}}, + "user.json": &bintree{xiangModelsUserJson, map[string]*bintree{}}, + }}, + "tables": &bintree{nil, map[string]*bintree{ + "README.md": &bintree{xiangTablesReadmeMd, map[string]*bintree{}}, + "user.json": &bintree{xiangTablesUserJson, map[string]*bintree{}}, }}, }}, }} diff --git a/go.mod b/go.mod index 238a5b58..4efd77ee 100644 --- a/go.mod +++ b/go.mod @@ -24,7 +24,7 @@ require ( github.com/robertkrimen/otto v0.0.0-20210927222213-f9375a256948 // indirect github.com/spf13/cobra v1.2.1 // indirect github.com/stretchr/testify v1.7.0 - github.com/yaoapp/gou v0.0.0-20210929115559-b1b0614e8d88 // indirect + github.com/yaoapp/gou v0.0.0-20210929143406-112eed6cdfd9 // indirect github.com/yaoapp/kun v0.6.5 github.com/yaoapp/xun v0.5.2 // indirect golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 // indirect @@ -38,4 +38,5 @@ require ( // go env -w GOPRIVATE=github.com/yaoapp/* // replace github.com/yaoapp/kun => ../kun // kun local +// replace github.com/yaoapp/xun => ../xun // gou local // replace github.com/yaoapp/gou => ../gou // gou local diff --git a/go.sum b/go.sum index af0bdb08..9f56de47 100644 --- a/go.sum +++ b/go.sum @@ -373,6 +373,10 @@ github.com/yaoapp/gou v0.0.0-20210929112923-09baf3629b95 h1:KOMi0RR1ynNgLyaN7YIX github.com/yaoapp/gou v0.0.0-20210929112923-09baf3629b95/go.mod h1:EKDxzk74c04dULx5+lJfTpMkR+z4QswAl0NC7DXDiWU= github.com/yaoapp/gou v0.0.0-20210929115559-b1b0614e8d88 h1:rAjfDVt6CBjcQGE6ie4U7tqmvmU355lIf+Ww0cL1WjQ= github.com/yaoapp/gou v0.0.0-20210929115559-b1b0614e8d88/go.mod h1:vcNZXFRgGuZWzjtYH65ck1o6nzWYDpToQ09zHC9xNDE= +github.com/yaoapp/gou v0.0.0-20210929134711-2a520a964087 h1:h4EUeoFAS/eRyonMBzS4wImjd3iGi2sCy6jGpGHATxA= +github.com/yaoapp/gou v0.0.0-20210929134711-2a520a964087/go.mod h1:vcNZXFRgGuZWzjtYH65ck1o6nzWYDpToQ09zHC9xNDE= +github.com/yaoapp/gou v0.0.0-20210929143406-112eed6cdfd9 h1:rsZXATrMRQzlEraTB7JorT7i29J5RBkK1zGFd6Fw/No= +github.com/yaoapp/gou v0.0.0-20210929143406-112eed6cdfd9/go.mod h1:vcNZXFRgGuZWzjtYH65ck1o6nzWYDpToQ09zHC9xNDE= github.com/yaoapp/kun v0.6.1 h1:gbjP5wmAuJLe1RGZ2evH4rPCVWykf0iqbksaHikF/GI= github.com/yaoapp/kun v0.6.1/go.mod h1:igsTcWDnzpp0HtRN7sBP+XOEN2tzoC5hk2MyoPFs3xA= github.com/yaoapp/kun v0.6.2 h1:QbtdZpVIklRDGEvL5YYRf/eR05YFZVFk/8rX2vy2K0Q= diff --git a/user/user.go b/user/user.go index 6a013d3c..349009d3 100644 --- a/user/user.go +++ b/user/user.go @@ -61,10 +61,14 @@ func Auth(field string, value string, password string) maps.Map { expiresAt := time.Now().Unix() + 3600 token := MakeToken(row, expiresAt) row.Del("password") + + // 读取菜单 + menus := gou.NewProcess("flows.xiang.menu").Run() return maps.Map{ "expires_at": expiresAt, "token": token, "user": row, + "menus": menus, } } diff --git a/xiang/flows/menu.flow.json b/xiang/flows/menu.flow.json new file mode 100644 index 00000000..2c81237d --- /dev/null +++ b/xiang/flows/menu.flow.json @@ -0,0 +1,47 @@ +{ + "label": "菜单列表", + "version": "1.0.0", + "description": "菜单列表", + "nodes": [ + { + "name": "menus", + "process": "models.xiang.menu.get", + "args": [ + { + "select": [ + "id", + "name", + "icon", + "parent", + "path", + "blocks", + "visible_menu" + ], + "withs": { + "children": { + "query": { + "limit": 2000, + "select": [ + "id", + "name", + "icon", + "parent", + "path", + "blocks", + "visible_menu" + ] + } + } + }, + "wheres": [ + { "column": "status", "value": "enabled" }, + { "column": "parent", "op": "null" } + ], + "limit": 200, + "orders": [{ "column": "rank", "option": "asc" }] + } + ] + } + ], + "output": "{{$res.menus}}" +} diff --git a/xiang/models/menu.json b/xiang/models/menu.json new file mode 100644 index 00000000..26c6151e --- /dev/null +++ b/xiang/models/menu.json @@ -0,0 +1,293 @@ +{ + "name": "菜单", + "table": { + "name": "xiang_menu", + "comment": "菜单表", + "engine": "InnoDB" + }, + "columns": [ + { "name": "id", "type": "ID", "comment": "ID" }, + { + "name": "parent", + "type": "bigInteger", + "comment": "父节点", + "nullable": true, + "index": true + }, + { + "name": "name", + "type": "string", + "length": 200, + "comment": "名称", + "index": true + }, + { + "name": "icon", + "type": "string", + "length": 200, + "comment": "图标", + "nullable": true + }, + { + "name": "blocks", + "type": "boolean", + "comment": "block布局", + "default": false, + "index": true + }, + { + "name": "visible_menu", + "type": "boolean", + "comment": "显示", + "default": false, + "index": true + }, + { + "name": "path", + "type": "string", + "length": 200, + "comment": "路由", + "index": true + }, + { + "name": "rank", + "type": "integer", + "default": 9999, + "comment": "排列", + "index": true + }, + { + "name": "status", + "type": "enum", + "default": "enabled", + "option": ["enabled", "disabled"], + "comment": "菜单状态 enabled 开启, disabled 关闭", + "index": true + } + ], + "relations": { + "children": { + "type": "hasMany", + "model": "xiang.menu", + "key": "parent", + "foreign": "id", + "query": { + "select": ["name", "icon", "blocks", "path", "rank", "status"] + } + } + }, + "values": [ + { + "id": 1, + "name": "数据看板", + "icon": "icon-activity", + "path": "/kanban", + "parent": null, + "visible_menu": false, + "blocks": false, + "rank": 1 + }, + { + "id": 2, + "name": "数据分析", + "icon": "icon-pie-chart", + "path": "/chart", + "visible_menu": false, + "parent": null, + "blocks": false, + "rank": 2 + }, + { + "id": 3, + "name": "数据表格", + "icon": "icon-grid", + "path": "/table", + "visible_menu": false, + "parent": null, + "blocks": false, + "rank": 3 + }, + { + "id": 4, + "name": "应用市场", + "icon": "icon-grid", + "path": "/table", + "visible_menu": false, + "parent": null, + "blocks": true, + "rank": 4 + }, + { + "id": 5, + "name": "软件服务服务质量分析", + "path": "/chart/sla", + "icon": null, + "visible_menu": false, + "parent": 2, + "blocks": false, + "rank": 9999 + }, + { + "id": 6, + "name": "软件服务地域分析", + "path": "/chart/area", + "icon": null, + "visible_menu": false, + "parent": 2, + "blocks": false, + "rank": 9999 + }, + { + "id": 7, + "name": "软件服务垂直领域分析", + "path": "/chart/fields", + "icon": null, + "visible_menu": false, + "parent": 2, + "blocks": false, + "rank": 9999 + }, + { + "id": 8, + "name": "软件服务行业分析", + "path": "/chart/industry", + "icon": null, + "visible_menu": false, + "parent": 2, + "blocks": false, + "rank": 9999 + }, + { + "id": 9, + "name": "软件服务供需分析", + "path": "/chart/needs", + "icon": null, + "visible_menu": false, + "parent": 2, + "blocks": false, + "rank": 9999 + }, + { + "id": 11, + "name": "服务质量", + "path": "/service/sla", + "icon": "icon-compass", + "visible_menu": false, + "parent": 4, + "blocks": false, + "rank": 9999 + }, + { + "id": 12, + "name": "地域分析", + "path": "/service/area", + "icon": "icon-crosshair", + "visible_menu": false, + "parent": 4, + "blocks": false, + "rank": 9999 + }, + { + "id": 13, + "name": "垂直领域", + "path": "/service/fields", + "icon": "icon-shopping-bag", + "visible_menu": false, + "parent": 4, + "blocks": false, + "rank": 9999 + }, + { + "id": 14, + "name": "行业分析", + "path": "/service/industry", + "icon": "icon-wind", + "visible_menu": false, + "parent": 4, + "blocks": false, + "rank": 9999 + }, + { + "id": 15, + "name": "供需分析", + "path": "/service/needs", + "icon": "icon-anchor", + "visible_menu": false, + "parent": 4, + "blocks": false, + "rank": 9999 + }, + { + "id": 16, + "name": "服务质量", + "path": "/service/sla", + "icon": "icon-compass", + "visible_menu": false, + "parent": 4, + "blocks": false, + "rank": 9999 + }, + { + "id": 17, + "name": "地域分析", + "path": "/service/area", + "icon": "icon-crosshair", + "visible_menu": false, + "parent": 4, + "blocks": false, + "rank": 9999 + }, + { + "id": 18, + "name": "垂直领域", + "path": "/service/fields", + "icon": "icon-shopping-bag", + "visible_menu": false, + "parent": 4, + "blocks": false, + "rank": 9999 + }, + { + "id": 19, + "name": "行业分析", + "path": "/service/industry", + "icon": "icon-wind", + "visible_menu": false, + "parent": 4, + "blocks": false, + "rank": 9999 + }, + { + "id": 20, + "name": "供需分析", + "path": "/service/needs", + "icon": "icon-anchor", + "visible_menu": false, + "parent": 4, + "blocks": false, + "rank": 9999 + }, + { + "id": 21, + "name": "报告列表", + "path": "/bug/list", + "icon": "icon-list", + "visible_menu": true, + "parent": 3, + "blocks": false, + "rank": 9999 + }, + { + "id": 22, + "name": "创建报告", + "path": "/bug/create", + "icon": "icon-plus", + "visible_menu": false, + "parent": 3, + "blocks": false, + "rank": 9999 + } + ], + "indexes": [], + "option": { "timestamps": true, "soft_deletes": true } +}