mirror of
https://github.com/larksuite/cli.git
synced 2026-07-06 00:06:28 +08:00
Adds the apps domain to lark-cli for managing Miaoda (妙搭) applications: 6 shortcuts covering the full lifecycle (+create / +update / +list / +access-scope-set / +access-scope-get / +html-publish). Aligned with the OAPI v2 design — app_type enum (currently HTML), string scope enum (All / Tenant / Range), cursor pagination, in-memory tar.gz multipart publish flow. Namespace registered at /open-apis/spark/v1/ with spark:app.* scopes. --------- Co-authored-by: wangjiangwen-gif <286006750+wangjiangwen-gif@users.noreply.github.com>
15 lines
382 B
Go
15 lines
382 B
Go
// Copyright (c) 2026 Lark Technologies Pte. Ltd.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package apps
|
|
|
|
import "testing"
|
|
|
|
// 钉死域内 shortcut 数量。少一条(漏挂)或多一条(误加)都会被这个测试拦截。
|
|
func TestAppsShortcuts_Returns6(t *testing.T) {
|
|
got := Shortcuts()
|
|
if len(got) != 6 {
|
|
t.Fatalf("Shortcuts() returned %d entries, want 6", len(got))
|
|
}
|
|
}
|