go-admin icon indicating copy to clipboard operation
go-admin copied to clipboard

[Question] How to get current system user info in gin.Context

Open Lifelong-Study opened this issue 5 years ago • 1 comments

Description [describe your questions]

I know how to get system user info in context.Context, but in "gin.Context" need help

Example code [If you have any code info]

func GetDashboard(ctx *gin.Context) (types.Panel, error) {
	// want get user info, and than do something
}

Lifelong-Study avatar Nov 03 '20 14:11 Lifelong-Study

@Lifelong-Study Here is a document which may help you.

chenhg5 avatar Nov 22 '20 01:11 chenhg5