sid

command
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

README

sid 鉴权用例

1.运行方法:

cd examples/sid

go run main.go

2.访问首页

注意:windows下使用gitbash运行以下命令

curl  'http://127.0.0.1:18000/'

2.登录

curl -fSsl --location --request GET 'http://127.0.0.1:18000/api/member/login' \
--header 'User-Agent: murphy' \
--form 'username="admin"' \
--form 'password="admin"'

2.获取详情

curl  -fSsl --location --request GET 'http://127.0.0.1:18000/api/member/detail' \
--header 'sid: 100.d715067c055689e1dc8b2421d917670a709b28e11' \
--header 'User-Agent: murphy' \
--form 'name="admin"'

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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