详细说明:有度官方文档
import "github.com/addcnos/youdu"
var userId string = 'user-id' // 用户ID
user, err := yd.User().Get(userId)
import "github.com/addcnos/youdu"
var deptId int = 1 // 部门ID
users, err := yd.User().List(deptId)
import "github.com/addcnos/youdu"
var deptId int = 1 // 部门ID
simpleUsers, err := yd.User().SimpleList(deptId)
import "github.com/addcnos/youdu"
var userId string = 'user-id' // 用户ID
state, err := yd.User().EnableState(userId)