datasrv

package
v0.0.0-...-0218ea2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServiceGroupApp = new(ServiceGroup)

Functions

This section is empty.

Types

type ApiInfoService

type ApiInfoService struct{}

func (*ApiInfoService) CreateApiInfo

func (apiInfoService *ApiInfoService) CreateApiInfo(apiInfo datamod.ApiInfo) (err error)

CreateApiInfo *

  • @Description: 新建API
  • @receiver apiInfoService
  • @param apiInfo
  • @return err

func (*ApiInfoService) DeleteApiInfo

func (apiInfoService *ApiInfoService) DeleteApiInfo(id string) (err error)

DeleteApiInfo *

  • @Description: 删除单个API
  • @receiver apiInfoService
  • @param id
  • @return err

func (*ApiInfoService) GetAllApiInfo

func (apiInfoService *ApiInfoService) GetAllApiInfo() (apiInfos []datamod.ApiInfo, err error)

GetAllApiInfo *

  • @Description: 查询所有API
  • @receiver apiInfoService
  • @return apiInfos
  • @return err

func (*ApiInfoService) GetApiInfo

func (apiInfoService *ApiInfoService) GetApiInfo(id string) (apiInfo datamod.ApiInfo, err error)

GetApiInfo *

  • @Description: 获取API详情
  • @receiver apiInfoService
  • @param id
  • @return apiInfo
  • @return err

func (*ApiInfoService) GetApiInfoMap

func (apiInfoService *ApiInfoService) GetApiInfoMap() (apiMap map[string][]datamod.ApiInfo, err error)

GetApiInfoMap *

  • @Description: 获取API的Map
  • @receiver apiInfoService
  • @return apiMap
  • @return err

func (*ApiInfoService) GetApiInfoPage

func (apiInfoService *ApiInfoService) GetApiInfoPage(pageInfo *page.PageInfo) (err error, pageBean *page.PageBean)

GetApiInfoPage *

  • @Description: API分页查询
  • @receiver apiInfoService
  • @param pageInfo
  • @return err
  • @return pageBean

func (*ApiInfoService) GetApiInfoTree

func (apiInfoService *ApiInfoService) GetApiInfoTree() (apiTrees []datares.ApiInfoTreeRes, err error)

GetApiInfoTree *

  • @Description: 获取API树
  • @receiver apiInfoService
  • @return apiTrees
  • @return err

type RoleApiService

type RoleApiService struct{}

func (*RoleApiService) GetRoleApi

func (roleApiService *RoleApiService) GetRoleApi(roleId string) (apiInfos []datamod.ApiInfo, err error)

GetRoleApi *

  • @Description: 角色API获取
  • @receiver roleApiService
  • @param roleId
  • @return apiInfos
  • @return err

func (*RoleApiService) RoleApiBind

func (roleApiService *RoleApiService) RoleApiBind(roleId string, apiIds []string) (err error)

RoleApiBind *

  • @Description: 角色API绑定
  • @receiver roleApiService
  • @param roleId
  • @param apiIds
  • @return err

type ServiceGroup

type ServiceGroup struct {
	ApiInfoService
	RoleApiService
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL