mp

package
v0.0.0-...-647ff6f Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirectLogin

func DirectLogin(ctx *gin.Context)

DirectLogin 直接登录

func GetArticle

func GetArticle(ctx *gin.Context)

GetArticle 获取文章

func GetUserInfo

func GetUserInfo(ctx *gin.Context)

GetUserInfo 获取用户信息

func Login

func Login(ctx *gin.Context)

Login wx登录

func Publish

func Publish(ctx *gin.Context)

Publish 发布文章

func Punch

func Punch(ctx *gin.Context)

Punch 打卡

func Punches

func Punches(ctx *gin.Context)

Punches 打卡记录

func SetUserInfo

func SetUserInfo(ctx *gin.Context)

SetUserInfo 设置用户信息

Types

type UserResponse

type UserResponse struct {
	ID       uint   `json:"ID"`
	Name     string `json:"Name"`
	SchoolID string `json:"SchoolID"`
}

UserResponse 用户信息

Jump to

Keyboard shortcuts

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