-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #258 from ArtisanCloud/dev/michaelhu
Dev/michaelhu
- Loading branch information
Showing
393 changed files
with
1,100 additions
and
565 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import "admin/scrm/contactway.api" | ||
//import "admin/scrm/customer.api" | ||
//import "admin/scrm/contact.api" | ||
// organzation | ||
import "admin/scrm/organization/weworkemployee.api" | ||
import "admin/scrm/organization/weworkdepartment.api" | ||
// app | ||
import "admin/scrm/app/weworkgroup.api" | ||
import "admin/scrm/app/weworkapp.api" | ||
import "admin/scrm/app/weworkappmessage.api" | ||
// wechat.customer | ||
import "admin/scrm/customer/weworkcustomer.api" | ||
import "admin/scrm/customer/weworkcustomergroup.api" | ||
// bot | ||
import "admin/scrm/bot/weworkbot.api" | ||
// resource | ||
import "admin/scrm/resource/weworkresource.api" | ||
// qrcode | ||
import "admin/scrm/qrcode/weworkcustomergroupqrcode.api" | ||
// tag | ||
import "admin/scrm/tag/weworktag.api" |
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,112 @@ | ||
syntax = "v1" | ||
|
||
info( | ||
title: "菜单管理" | ||
desc: "菜单管理" | ||
author: "MichaelHu" | ||
email: "[email protected]" | ||
version: "v1" | ||
) | ||
|
||
@server( | ||
group: admin/wechat/officialaccount/menu | ||
prefix: /api/v1/admin/wechat/official-account | ||
middleware: EmployeeJWTAuth | ||
) | ||
|
||
service PowerX { | ||
@doc "查询菜单列表" | ||
@handler QueryMenus | ||
get /menus-tree returns (QueryMenusReply) | ||
|
||
@doc "请求菜单上传链接" | ||
@handler SyncMenus | ||
post /menus (SyncMenusRequest) returns (SyncMenusReply) | ||
|
||
|
||
@doc "创建菜单" | ||
@handler CreateMenu | ||
post /menus (CreateMenuRequest) returns (CreateMenuReply) | ||
|
||
@doc "删除菜单" | ||
@handler DeleteMenu | ||
delete /menus returns (DeleteMenuReply) | ||
} | ||
|
||
type ( | ||
SubButton struct { | ||
|
||
Name string `json:"name,optional"` | ||
Id int `json:"id,optional"` | ||
Type string `json:"type,optional"` | ||
Key string `json:"key,omitempty,optional"` | ||
Url string `json:"url,omitempty,optional"` | ||
} | ||
|
||
Button struct { | ||
Name string `json:"name,optional"` | ||
SubButton []*SubButton `json:"sub_button,optional"` | ||
Id int `json:"id,optional"` | ||
} | ||
|
||
MatchRule struct { | ||
TagId string `json:"tag_id,optional"` | ||
Sex string `json:"sex,optional"` | ||
Country string `json:"country,optional"` | ||
Province string `json:"province,optional"` | ||
City string `json:"city,optional"` | ||
Language string `json:"language,optional"` | ||
} | ||
Menu struct { | ||
Id int64 `json:"id,optional"` | ||
Button []*Button `json:"button,optional"` | ||
MatchRule *MatchRule `json:"matchrule,optional"` | ||
} | ||
) | ||
|
||
type ( | ||
SyncMenusRequest struct { | ||
Menu | ||
} | ||
|
||
SyncMenusReply struct { | ||
success bool `json:"success,optional"` | ||
} | ||
) | ||
|
||
type ( | ||
CreateMenuRequest struct { | ||
Menu | ||
} | ||
|
||
CreateMenuReply struct { | ||
success bool `json:"success,optional"` | ||
} | ||
) | ||
|
||
type ( | ||
QunerySubButton struct { | ||
QueryList []SubButton `json:"list,optional"` | ||
} | ||
QueryButton struct { | ||
Name string `json:"name,optional"` | ||
SubButton []*QunerySubButton `json:"sub_button,optional"` | ||
Id int `json:"id,optional"` | ||
} | ||
|
||
SelfMenuInfo struct { | ||
Button *QueryButton `json:"button,optional"` | ||
} | ||
|
||
QueryMenusReply struct { | ||
IsMenuOpen int64 `json:"is_menu_open,optional"` | ||
SelfMenuInfo SelfMenuInfo `json:"selfmenu_info,optional"` | ||
} | ||
) | ||
|
||
|
||
type ( | ||
DeleteMenuReply struct { | ||
success bool `json:"success"` | ||
} | ||
) |
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
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
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
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
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
Oops, something went wrong.