添加接口

This commit is contained in:
守护自己的云 2025-03-28 15:53:33 +08:00
parent f5b2dc86d1
commit 012d3e5ee8
2 changed files with 36 additions and 14 deletions

View File

@ -68,3 +68,9 @@ const (
ExchangeSettlementTypeMaster ExchangeSettlementType = 1 // 总票
ExchangeSettlementTypeSub ExchangeSettlementType = 2 // 分票
)
type Flag = int64 // 状态
const (
FlagTrue Flag = 1 // 是
FlagFalse Flag = 2 // 否
)

View File

@ -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 // 密码