user

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeptUserlist

func DeptUserlist(orgid, deptid *string)

5.获取部门下人员

func DeptstationUserlist

func DeptstationUserlist(orgid, deptid *string)

7. 获取部门下岗位成员

func UserDeptlist

func UserDeptlist(orgid, userid *string)

6. 获取用户所在部门

func UserStation

func UserStation(orgid, userid *string)

8.获取用户的岗位

func UserSubject

func UserSubject(orgid, userid *string)

9.获取老师任教科目

Types

type RespChildInfo

type RespChildInfo struct {
	xyh.Common
	Data []StuInfo `json:"data"`
}

人员孩子信息

func UserChildren

func UserChildren(orgid, openid *string) (*RespChildInfo, error)

3.获取家长孩子信息

type RespLoginInfo

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"`
}

用户登录信息

func UserGet

func UserGet(ticket *string) (*RespLoginInfo, error)

1.获取当前用户登录信息

type RespStudentInfo

type RespStudentInfo struct {
	xyh.Common
	Data StuInfo `json:"data"`
}

学生信息

func StudentInfo

func StudentInfo(orgid, userid *string) (*RespStudentInfo, error)

4.获取学生用户信息

type RespTeacherInfo

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"`
}

老师用户信息

func UserInfo

func UserInfo(orgid, userid, openid *string) (*RespTeacherInfo, error)

2.获取老师用户信息

type StuInfo

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"`
}

学生结构信息

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL