添加接口
This commit is contained in:
parent
f5b2dc86d1
commit
012d3e5ee8
@ -68,3 +68,9 @@ const (
|
||||
ExchangeSettlementTypeMaster ExchangeSettlementType = 1 // 总票
|
||||
ExchangeSettlementTypeSub ExchangeSettlementType = 2 // 分票
|
||||
)
|
||||
|
||||
type Flag = int64 // 状态
|
||||
const (
|
||||
FlagTrue Flag = 1 // 是
|
||||
FlagFalse Flag = 2 // 否
|
||||
)
|
||||
|
16
oa/staff.go
16
oa/staff.go
@ -29,6 +29,7 @@ type ReplyStaffInfo struct {
|
||||
CreatedAt time.Time `json:"createdAt"`
|
||||
UpdatedAt time.Time `json:"updatedAt"`
|
||||
Fax string `json:"fax"`
|
||||
NeedChangePassword int64 `json:"needChangePassword"`
|
||||
}
|
||||
|
||||
// Login @TITLE 登录
|
||||
@ -56,6 +57,21 @@ func (s *staff) ResetPass(ctx context.Context, args ArgsStaffResetPass) (err err
|
||||
return xClient.Call(ctx, "ResetPass", args, &reply)
|
||||
}
|
||||
|
||||
type ArgsStaffValidatePass struct {
|
||||
StaffId int64 // 员工id
|
||||
Password string // 密码
|
||||
}
|
||||
|
||||
// ValidatePass @TITLE 验证密码
|
||||
func (s *staff) ValidatePass(ctx context.Context, args ArgsStaffValidatePass) (err error) {
|
||||
xClient, err := client.GetClient(s)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
var reply int
|
||||
return xClient.Call(ctx, "ValidatePass", args, &reply)
|
||||
}
|
||||
|
||||
type ArgsStaffResetPassByPhone struct {
|
||||
Phone string // 手机号
|
||||
Password string // 密码
|
||||
|
Loading…
x
Reference in New Issue
Block a user