更新
This commit is contained in:
35
oa/staff.go
35
oa/staff.go
@@ -15,18 +15,19 @@ type ArgsStaffLogin struct {
|
||||
}
|
||||
|
||||
type ReplyStaffInfo struct {
|
||||
Id int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
EnName string `json:"enName"`
|
||||
Account string `json:"account"`
|
||||
Status int64 `json:"status"`
|
||||
Avatar string `json:"avatar"`
|
||||
Gender string `json:"gender"`
|
||||
Phone string `json:"phone"`
|
||||
Email string `json:"email"`
|
||||
DepartmentId int64 `json:"departmentId"`
|
||||
CreatedAt time.Time `json:"createdAt"`
|
||||
UpdatedAt time.Time `json:"updatedAt"`
|
||||
Id int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
EnName string `json:"enName"`
|
||||
Account string `json:"account"`
|
||||
Status int64 `json:"status"`
|
||||
Avatar string `json:"avatar"`
|
||||
Gender string `json:"gender"`
|
||||
Phone string `json:"phone"`
|
||||
Email string `json:"email"`
|
||||
DepartmentId int64 `json:"departmentId"`
|
||||
DepartmentName string `json:"departmentName"`
|
||||
CreatedAt time.Time `json:"createdAt"`
|
||||
UpdatedAt time.Time `json:"updatedAt"`
|
||||
}
|
||||
|
||||
// Login @TITLE 登录
|
||||
@@ -143,6 +144,16 @@ func (s *staff) Info(ctx context.Context, staffId int64) (reply ReplyStaffInfo,
|
||||
return
|
||||
}
|
||||
|
||||
// Infos @TITLE 员工详情
|
||||
func (s *staff) Infos(ctx context.Context, staffIds []int64) (reply []ReplyStaffInfo, err error) {
|
||||
xClient, err := client.GetClient(s)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
err = xClient.Call(ctx, "Infos", staffIds, &reply)
|
||||
return
|
||||
}
|
||||
|
||||
type ArgsStaffEdit struct {
|
||||
StaffId int64 // 员工id
|
||||
ArgsStaffAdd
|
||||
|
||||
Reference in New Issue
Block a user