-
Notifications
You must be signed in to change notification settings - Fork 0
/
hrm_employee.go
31 lines (28 loc) · 987 Bytes
/
hrm_employee.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package godingtalk
type SmartworkHrmEmployeeListResp struct {
Result []struct {
Userid string `json:"userid"`
Partner bool `json:"partner"`
FieldList []struct {
FieldName string `json:"fieldName"`
FieldCode string `json:"fieldCode"`
GroupID string `json:"groupId"`
Label string `json:"label,omitempty"`
Value string `json:"value,omitempty"`
} `json:"field_list"`
} `json:"result"`
Base
Success bool `json:"success"`
}
type SmartworkHrmEmployeeListReq struct {
UserIDList string `json:"userid_list"`
//FieldFilterList string `json:"field_filter_list"`
}
func (d *DingtalkClient) OapiSmartworkHrmEmployeeListRequest(useridList string) (SmartworkHrmEmployeeListResp, error) {
reqData := SmartworkHrmEmployeeListReq{
UserIDList: useridList,
//FieldFilterList: strings.Join(fieldFilterList, ","),
}
var respData SmartworkHrmEmployeeListResp
return respData, rpc(d, "topapi/smartwork/hrm/employee/list", d.params, reqData, &respData)
}