Ai
1 Star 0 Fork 1

凌海仲子/xyh

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
user-model.go 1.53 KB
一键复制 编辑 原始数据 按行查看 历史
凌海仲子 提交于 2023-06-25 11:10 +08:00 . 考勤相关业务接口实现
package user
import "gitee.com/suguo79/xyh"
// 用户登录信息
type RespLoginInfo struct {
xyh.Common
Data struct {
Parent bool `json:"parent"`
OrgName string `json:"orgName"`
Teacher bool `json:"teacher"`
OpenID string `json:"openId"`
Name string `json:"name"`
Avatar string `json:"avatar"`
OrgID string `json:"orgId"`
} `json:"data"`
}
// 老师用户信息
type RespTeacherInfo struct {
xyh.Common
Data struct {
Birthday interface{} `json:"birthday"`
Numbering interface{} `json:"numbering"`
Gender interface{} `json:"gender"`
Post interface{} `json:"post"`
OpenID string `json:"openId"`
Avatar interface{} `json:"avatar"`
DeptIds []string `json:"deptIds"`
UserName string `json:"userName"`
UserID string `json:"userId"`
OrgID string `json:"orgId"`
} `json:"data"`
}
// 人员孩子信息
type RespChildInfo struct {
xyh.Common
Data []StuInfo `json:"data"`
}
// 学生结构信息
type StuInfo struct {
OrgID string `json:"orgId"`
UserID string `json:"userId"`
UserName string `json:"userName"`
Gender int `json:"gender"`
Birthday string `json:"birthday"`
Avatar string `json:"avatar"`
Numbering string `json:"numbering"`
DeptIds []string `json:"deptIds"`
Parents []struct {
OpenID string `json:"openId"`
RelationType int `json:"relationType"`
RelationName string `json:"relationName"`
} `json:"parents"`
}
// 学生信息
type RespStudentInfo struct {
xyh.Common
Data StuInfo `json:"data"`
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/suguo79/xyh.git
git@gitee.com:suguo79/xyh.git
suguo79
xyh
xyh
v0.2.4

搜索帮助