TestOrg

package
v5.1.33 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UserInfo     UserCore.FieldsUserType
	OrgData      OrgCore.FieldsOrg
	WorkTimeData OrgTime.FieldsWorkTime
	GroupData    OrgCore.FieldsGroup
	BindData     OrgCore.FieldsBind
	BindList     []OrgCore.FieldsBind
)

Functions

func Create

func Create(t *testing.T, userID string)

创建新的组织

func CreateBind

func CreateBind(t *testing.T, userInfo UserCore.FieldsUserType) (bindData OrgCore.FieldsBind, err error)

func CreateUser

func CreateUser(t *testing.T) (userInfo UserCore.FieldsUserType, errCode string, err error)

func DeleteByID

func DeleteByID(t *testing.T, id string)

删除组织

func GetBindList

func GetBindList(t *testing.T, orgID string)

获取绑定列表 url: /v1/work/organizational/manager/bind/list

func LocalClear

func LocalClear(t *testing.T)

LocalClear 清理 如果存在组织或任意内容,则将清理

func LocalCreateBind

func LocalCreateBind(t *testing.T)

LocalCreateBind 创建绑定关系

func LocalCreateGroup

func LocalCreateGroup(t *testing.T)

LocalCreateGroup 创建分组

func LocalCreateOrg

func LocalCreateOrg(t *testing.T)

LocalCreateOrg 创建新的组织

func LocalCreateUser

func LocalCreateUser(t *testing.T)

LocalCreateUser 创建用户

func LocalCreateWorkTime

func LocalCreateWorkTime(t *testing.T)

LocalCreateWorkTime 创建分组的工作时间

func LocalInit

func LocalInit()

LocalInit 本地化初始化

func LocalOrgFinance

func LocalOrgFinance(t *testing.T)

LocalOrgFinance 为商户新增储蓄的支持设置

func SetUserBind

func SetUserBind(t *testing.T, orgID string, userID string, name string, managers []string)

让某个用户成为组织成员

func SetUserSelectOrg

func SetUserSelectOrg(t *testing.T, orgID string)

设置用户当前选择的组织 url: /v1/work/organizational/user/select

Types

This section is empty.

Jump to

Keyboard shortcuts

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