添加接口
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 // 否 | ||||
| ) | ||||
|  | ||||
							
								
								
									
										44
									
								
								oa/staff.go
									
									
									
									
									
								
							
							
						
						
									
										44
									
								
								oa/staff.go
									
									
									
									
									
								
							| @ -15,20 +15,21 @@ 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"` | ||||
| 	DepartmentName string    `json:"departmentName"` | ||||
| 	CreatedAt      time.Time `json:"createdAt"` | ||||
| 	UpdatedAt      time.Time `json:"updatedAt"` | ||||
| 	Fax            string    `json:"fax"` | ||||
| 	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"` | ||||
| 	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