Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheAuthorizedData ¶
type CacheAuthorizedData struct { Key string `json:"key"` // 调用方 key Secret string `json:"secret"` // 调用方 secret IsUsed int32 `json:"is_used"` // 调用方启用状态 1=启用 -1=禁用 Apis []cacheApiData `json:"apis"` // 调用方授权的 Apis }
CacheAuthorizedData 缓存结构
type CreateAuthorizedAPIData ¶
type CreateAuthorizedData ¶
type SearchAPIData ¶
type SearchAPIData struct {
BusinessKey string `json:"business_key"` // 调用方key
}
type SearchData ¶
type SearchData struct { Page int `json:"page"` // 第几页 PageSize int `json:"page_size"` // 每页显示条数 BusinessKey string `json:"business_key"` // 调用方key BusinessSecret string `json:"business_secret"` // 调用方secret BusinessDeveloper string `json:"business_developer"` // 调用方对接人 Remark string `json:"remark"` // 备注 }
type Service ¶
type Service interface { Create(ctx core.Context, authorizedData *CreateAuthorizedData) (id int32, err error) List(ctx core.Context, searchData *SearchData) (listData []*authorized_repo.Authorized, err error) PageList(ctx core.Context, searchData *SearchData) (listData []*authorized_repo.Authorized, err error) PageListCount(ctx core.Context, searchData *SearchData) (total int64, err error) UpdateUsed(ctx core.Context, id int32, used int32) (err error) Delete(ctx core.Context, id int32) (err error) Detail(ctx core.Context, id int32) (info *authorized_repo.Authorized, err error) DetailByKey(ctx core.Context, key string) (data *CacheAuthorizedData, err error) CreateAPI(ctx core.Context, authorizedAPIData *CreateAuthorizedAPIData) (id int32, err error) ListAPI(ctx core.Context, searchAPIData *SearchAPIData) (listData []*authorized_api_repo.AuthorizedApi, err error) DeleteAPI(ctx core.Context, id int32) (err error) // contains filtered or unexported methods }
Click to show internal directories.
Click to hide internal directories.