-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b837c5
commit 48cfed0
Showing
9 changed files
with
532 additions
and
532 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,114 +1,113 @@ | ||
syntax = "v1" | ||
|
||
info( | ||
title: "字典" | ||
desc: "字典" | ||
author: "Trevor" | ||
email: "trevorlan@163.com" | ||
title: "字典" | ||
desc: "字典" | ||
author: "Trevor" | ||
email: "trevorlan@163.com" | ||
) | ||
|
||
type ( | ||
ConfigDict { | ||
Id int64 `json:"id"` | ||
ParentId int64 `json:"parentId"` | ||
Name string `json:"name"` | ||
Type int64 `json:"type"` | ||
UniqueKey string `json:"uniqueKey"` | ||
Value string `json:"value"` | ||
OrderNum int64 `json:"orderNum"` | ||
Remark string `json:"remark"` | ||
Status int64 `json:"status"` | ||
} | ||
ConfigDictListResp { | ||
DictList []ConfigDict `json:"list"` | ||
} | ||
ConfigDict { | ||
Id int64 `json:"id"` | ||
ParentId int64 `json:"parentId"` | ||
Name string `json:"name"` | ||
Type int64 `json:"type"` | ||
UniqueKey string `json:"uniqueKey"` | ||
Value string `json:"value"` | ||
OrderNum int64 `json:"orderNum"` | ||
Remark string `json:"remark"` | ||
Status int64 `json:"status"` | ||
} | ||
ConfigDictListResp { | ||
DictList []ConfigDict `json:"list"` | ||
} | ||
) | ||
|
||
type ( | ||
ConfigDictPageReq { | ||
Page int64 `form:"page"` | ||
Limit int64 `form:"limit"` | ||
ParentId int64 `form:"parentId"` | ||
} | ||
ConfigDictPagination { | ||
Page int64 `json:"page"` | ||
Limit int64 `json:"limit"` | ||
Total int64 `json:"total"` | ||
} | ||
ConfigDictPageResp { | ||
ConfigDictList []ConfigDict `json:"list"` | ||
Pagination ConfigDictPagination `json:"pagination"` | ||
} | ||
ConfigDictPageReq { | ||
Page int64 `form:"page"` | ||
Limit int64 `form:"limit"` | ||
ParentId int64 `form:"parentId"` | ||
} | ||
ConfigDictPagination { | ||
Page int64 `json:"page"` | ||
Limit int64 `json:"limit"` | ||
Total int64 `json:"total"` | ||
} | ||
ConfigDictPageResp { | ||
ConfigDictList []ConfigDict `json:"list"` | ||
Pagination ConfigDictPagination `json:"pagination"` | ||
} | ||
) | ||
|
||
type ( | ||
AddConfigDictReq { | ||
ParentId int64 `json:"parentId"` | ||
Name string `json:"name"` | ||
Type int64 `json:"type"` | ||
UniqueKey string `json:"uniqueKey"` | ||
Value string `json:"value"` | ||
OrderNum int64 `json:"orderNum"` | ||
Remark string `json:"remark"` | ||
Status int64 `json:"status"` | ||
} | ||
AddConfigDictReq { | ||
ParentId int64 `json:"parentId"` | ||
Name string `json:"name"` | ||
Type int64 `json:"type"` | ||
UniqueKey string `json:"uniqueKey"` | ||
Value string `json:"value"` | ||
OrderNum int64 `json:"orderNum"` | ||
Remark string `json:"remark"` | ||
Status int64 `json:"status"` | ||
} | ||
) | ||
|
||
type ( | ||
DeleteConfigDictReq { | ||
Id int64 `json:"id"` | ||
} | ||
DeleteConfigDictReq { | ||
Id int64 `json:"id"` | ||
} | ||
) | ||
|
||
type ( | ||
UpdateConfigDictReq { | ||
Id int64 `json:"id"` | ||
ParentId int64 `json:"parentId"` | ||
Name string `json:"name"` | ||
Type int64 `json:"type"` | ||
UniqueKey string `json:"uniqueKey"` | ||
Value string `json:"value"` | ||
OrderNum int64 `json:"orderNum"` | ||
Remark string `json:"remark"` | ||
Status int64 `json:"status"` | ||
} | ||
UpdateConfigDictReq { | ||
Id int64 `json:"id"` | ||
ParentId int64 `json:"parentId"` | ||
Name string `json:"name"` | ||
Type int64 `json:"type"` | ||
UniqueKey string `json:"uniqueKey"` | ||
Value string `json:"value"` | ||
OrderNum int64 `json:"orderNum"` | ||
Remark string `json:"remark"` | ||
Status int64 `json:"status"` | ||
} | ||
) | ||
|
||
@server( | ||
jwt: JwtAuth | ||
group : config/dict | ||
prefix : /config/dict | ||
middleware: PermMenuAuth | ||
jwt: JwtAuth | ||
group : config/dict | ||
prefix : /config/dict | ||
middleware: PermMenuAuth | ||
) | ||
service core-api { | ||
@doc( | ||
summary: "字典集" | ||
) | ||
@handler GetConfigDictList | ||
get /list returns (ConfigDictListResp) | ||
|
||
@doc( | ||
summary: "分页字典" | ||
) | ||
@handler GetConfigDictPage | ||
get /data/page (ConfigDictPageReq) returns (ConfigDictPageResp) | ||
|
||
|
||
@doc( | ||
summary: "新增字典" | ||
) | ||
@handler AddConfigDict | ||
post /add (AddConfigDictReq) | ||
|
||
@doc( | ||
summary: "删除字典" | ||
) | ||
@handler DeleteConfigDict | ||
post /delete (DeleteConfigDictReq) | ||
|
||
@doc( | ||
summary: "更新字典" | ||
) | ||
@handler UpdateConfigDict | ||
post /update (UpdateConfigDictReq) | ||
@doc( | ||
summary: "字典列表" | ||
) | ||
@handler GetConfigDictList | ||
get /list returns (ConfigDictListResp) | ||
|
||
@doc( | ||
summary: "分页字典数据" | ||
) | ||
@handler GetConfigDictPage | ||
get /data/page (ConfigDictPageReq) returns (ConfigDictPageResp) | ||
|
||
@doc( | ||
summary: "新增字典" | ||
) | ||
@handler AddConfigDict | ||
post /add (AddConfigDictReq) | ||
|
||
@doc( | ||
summary: "删除字典" | ||
) | ||
@handler DeleteConfigDict | ||
post /delete (DeleteConfigDictReq) | ||
|
||
@doc( | ||
summary: "更新字典" | ||
) | ||
@handler UpdateConfigDict | ||
post /update (UpdateConfigDictReq) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,58 @@ | ||
syntax = "v1" | ||
|
||
info( | ||
title: "日志" | ||
desc: "日志" | ||
author: "Trevor" | ||
email: "trevorlan@163.com" | ||
title: "日志" | ||
desc: "日志" | ||
author: "Trevor" | ||
email: "trevorlan@163.com" | ||
) | ||
|
||
type ( | ||
LogLogin { | ||
Id uint64 `json:"id"` | ||
Account string `json:"account"` | ||
Ip string `json:"ip"` | ||
Uri string `json:"uri"` | ||
Status int64 `json:"status"` | ||
CreateTime string `json:"createTime"` | ||
} | ||
LogLoginPageReq { | ||
Page int64 `form:"page"` | ||
Limit int64 `form:"limit"` | ||
} | ||
LogLoginPagePagination { | ||
Page int64 `json:"page"` | ||
Limit int64 `json:"limit"` | ||
Total int64 `json:"total"` | ||
} | ||
LogLoginPageResp { | ||
LogLoginList []LogLogin `json:"list"` | ||
Pagination LogLoginPagePagination `json:"pagination"` | ||
} | ||
LogLogin { | ||
Id uint64 `json:"id"` | ||
Account string `json:"account"` | ||
Ip string `json:"ip"` | ||
Uri string `json:"uri"` | ||
Status int64 `json:"status"` | ||
CreateTime string `json:"createTime"` | ||
} | ||
LogLoginPageReq { | ||
Page int64 `form:"page"` | ||
Limit int64 `form:"limit"` | ||
} | ||
LogLoginPagePagination { | ||
Page int64 `json:"page"` | ||
Limit int64 `json:"limit"` | ||
Total int64 `json:"total"` | ||
} | ||
LogLoginPageResp { | ||
LogLoginList []LogLogin `json:"list"` | ||
Pagination LogLoginPagePagination `json:"pagination"` | ||
} | ||
) | ||
|
||
type ( | ||
DeleteLogLoginReq { | ||
Id uint64 `json:"id"` | ||
} | ||
DeleteLogLoginReq { | ||
Id uint64 `json:"id"` | ||
} | ||
) | ||
|
||
|
||
@server( | ||
jwt: JwtAuth | ||
group : log/login | ||
prefix : /log/login | ||
middleware: PermMenuAuth | ||
jwt: JwtAuth | ||
group : log/login | ||
prefix : /log/login | ||
middleware: PermMenuAuth | ||
) | ||
service core-api { | ||
@doc( | ||
summary: "分页日志" | ||
) | ||
@handler GetLogLoginPage | ||
get /page (LogLoginPageReq) returns (LogLoginPageResp) | ||
|
||
@doc( | ||
summary: "删除日志" | ||
) | ||
@handler DeleteLogLogin | ||
post /delete (DeleteLogLoginReq) | ||
@doc( | ||
summary: "分页日志" | ||
) | ||
@handler GetLogLoginPage | ||
get /page (LogLoginPageReq) returns (LogLoginPageResp) | ||
@doc( | ||
summary: "删除日志" | ||
) | ||
@handler DeleteLogLogin | ||
post /delete (DeleteLogLoginReq) | ||
} |
Oops, something went wrong.