添加接口
This commit is contained in:
parent
f5b2dc86d1
commit
012d3e5ee8
@ -68,3 +68,9 @@ const (
|
|||||||
ExchangeSettlementTypeMaster ExchangeSettlementType = 1 // 总票
|
ExchangeSettlementTypeMaster ExchangeSettlementType = 1 // 总票
|
||||||
ExchangeSettlementTypeSub ExchangeSettlementType = 2 // 分票
|
ExchangeSettlementTypeSub ExchangeSettlementType = 2 // 分票
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type Flag = int64 // 状态
|
||||||
|
const (
|
||||||
|
FlagTrue Flag = 1 // 是
|
||||||
|
FlagFalse Flag = 2 // 否
|
||||||
|
)
|
||||||
|
44
oa/staff.go
44
oa/staff.go
@ -15,20 +15,21 @@ type ArgsStaffLogin struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ReplyStaffInfo struct {
|
type ReplyStaffInfo struct {
|
||||||
Id int64 `json:"id"`
|
Id int64 `json:"id"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
EnName string `json:"enName"`
|
EnName string `json:"enName"`
|
||||||
Account string `json:"account"`
|
Account string `json:"account"`
|
||||||
Status int64 `json:"status"`
|
Status int64 `json:"status"`
|
||||||
Avatar string `json:"avatar"`
|
Avatar string `json:"avatar"`
|
||||||
Gender string `json:"gender"`
|
Gender string `json:"gender"`
|
||||||
Phone string `json:"phone"`
|
Phone string `json:"phone"`
|
||||||
Email string `json:"email"`
|
Email string `json:"email"`
|
||||||
DepartmentId int64 `json:"departmentId"`
|
DepartmentId int64 `json:"departmentId"`
|
||||||
DepartmentName string `json:"departmentName"`
|
DepartmentName string `json:"departmentName"`
|
||||||
CreatedAt time.Time `json:"createdAt"`
|
CreatedAt time.Time `json:"createdAt"`
|
||||||
UpdatedAt time.Time `json:"updatedAt"`
|
UpdatedAt time.Time `json:"updatedAt"`
|
||||||
Fax string `json:"fax"`
|
Fax string `json:"fax"`
|
||||||
|
NeedChangePassword int64 `json:"needChangePassword"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Login @TITLE 登录
|
// Login @TITLE 登录
|
||||||
@ -56,6 +57,21 @@ func (s *staff) ResetPass(ctx context.Context, args ArgsStaffResetPass) (err err
|
|||||||
return xClient.Call(ctx, "ResetPass", args, &reply)
|
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 {
|
type ArgsStaffResetPassByPhone struct {
|
||||||
Phone string // 手机号
|
Phone string // 手机号
|
||||||
Password string // 密码
|
Password string // 密码
|
||||||
|
Loading…
x
Reference in New Issue
Block a user