访客登记
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
visitor/internal/model/visitor_record.go

73 lines
2.5 KiB

package model
import "github.com/gogf/gf/v2/os/gtime"
type ResRecord struct {
XAxis string `json:"x_axis,omitempty"`
YAxis string `json:"y_axis,omitempty"`
}
// VisitorRecord is the golang structure for table visitor_record.
type VisitorRecord struct {
Id uint `json:"id" ` // 自增id
VisitorName string `json:"visitorName" ` // 访客姓名
VisitorIdentity string `json:"visitorIdentity" ` // 访客身份证号码
VisitorPhone string `json:"visitorPhone" ` // 访客手机号
VisitorDepartment string `json:"visitorDepartment" ` // 来访单位
DstDepartment string `json:"dstDepartment" ` // 拜访人部门
DstDepartmentId int `json:"dst_dept_id" ` // 拜访人部门id
DstName string `json:"dstName" ` // 拜访人姓名
DstUserId string `json:"dst_user_id" ` // 拜访人用户id
DstLocation string `json:"dstLocation" ` // 地址(楼宇和层数)
Reason string `json:"reason" ` // 来访事由
VehicleNumber string `json:"vehicleNumber" ` // 车牌号码
Remark string `json:"remark" ` // 备注
LeftAt *gtime.Time `json:"leftAt" ` // 离场时间
VisitAt *gtime.Time `json:"visitAt" ` // 拜访时间
CreatedAt *gtime.Time `json:"createdAt" ` // 创建时间
UpdatedAt *gtime.Time `json:"updatedAt" ` // 更新时间
}
type AccessTokenResp struct {
AccessToken string `json:"access_token"`
ExpiresIn int `json:"expires_in"`
ErrMsg string `json:"errmsg"`
ErrCode int `json:"errcode"`
}
type DeptListResp struct {
ErrMsg string `json:"errmsg"`
ErrCode int `json:"errcode"`
Result []*Dept `json:"result"`
RequestId string `json:"request_id"`
}
type Dept struct {
DeptId int `json:"dept_id"`
Name string `json:"name"`
ParentId int `json:"parent_id"`
}
type UserListResp struct {
ErrMsg string `json:"errmsg"`
ErrCode int `json:"errcode"`
Result *UserResult `json:"result"`
RequestId string `json:"request_id"`
}
type UserResult struct {
HasMore bool `json:"has_more"`
List []*User `json:"list"`
}
type User struct {
UserId string `json:"userid"`
Name string `json:"name"`
}
type DingMsgResp struct {
ErrMsg string `json:"errmsg"`
ErrCode int `json:"errcode"`
TaskId int `json:"task_id"`
RequestId string `json:"request_id"`
}