apiGroup.go 881 字节
Newer Older
E
eoLinker API Management 已提交
1 2 3
package api

import (
Y
Your Name 已提交
4
	console_sqlite3 "github.com/eolinker/goku-api-gateway/server/dao/console-sqlite3"
E
eoLinker API Management 已提交
5 6
)

Y
Your Name 已提交
7 8
//AddAPIGroup 新建接口分组
func AddAPIGroup(groupName string, projectID, parentGroupID int) (bool, interface{}, error) {
Y
Your Name 已提交
9
	return console_sqlite3.AddAPIGroup(groupName, projectID, parentGroupID)
E
eoLinker API Management 已提交
10 11
}

Y
Your Name 已提交
12 13
//EditAPIGroup 修改接口分组
func EditAPIGroup(groupName string, groupID, projectID int) (bool, string, error) {
Y
Your Name 已提交
14
	return console_sqlite3.EditAPIGroup(groupName, groupID, projectID)
E
eoLinker API Management 已提交
15 16
}

Y
Your Name 已提交
17 18
//DeleteAPIGroup 删除接口分组
func DeleteAPIGroup(projectID, groupID int) (bool, string, error) {
Y
Your Name 已提交
19 20
	flag, result, err := console_sqlite3.DeleteAPIGroup(projectID, groupID)

E
eoLinker API Management 已提交
21 22 23
	return flag, result, err
}

Y
Your Name 已提交
24 25
//GetAPIGroupList 获取接口分组列表
func GetAPIGroupList(projectID int) (bool, []map[string]interface{}, error) {
Y
Your Name 已提交
26
	return console_sqlite3.GetAPIGroupList(projectID)
E
eoLinker API Management 已提交
27
}