v1

package
v0.0.0-...-905b784 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientPut

func ClientPut(c *gin.Context)

ClientPut 클라이언트 생성 혹은 업데이트를 해주는 API masterkey, clientId, clientPw, link, valid 를 요청으로 받음 token을 반환함 400, 401, 500 에러 발생가능

func UserGet

func UserGet(c *gin.Context)

UserGet Healthcheck용 API 절대로 프로그램적으로 사용하지 말것

func UserPost

func UserPost(c *gin.Context)

UserPost 유저 정보를 불러오는 API userId, userPw, token 으로 사용자 정보를 받아옴. _id, userId, userName, userNumber 를 반환함. 400, 401, 403, 500 에러 발생가능

Types

type RequestClientUpdate

type RequestClientUpdate struct {
	MasterKey string `json:"masterkey" binding:"required"`
	ClientID  string `json:"clientId" binding:"required"`
	ClientPW  string `json:"clientPw" binding:"required"`
	Link      string `json:"link" binding:"required"`
	Valid     bool   `json:"valid"`
}

RequestClientUpdate /v1/client PUT으로 들어오는 요청

type RequestUserInfo

type RequestUserInfo struct {
	Token  string `json:"token" binding:"required"`
	UserID string `json:"userId" binding:"required"`
	UserPW string `json:"userPw" binding:"required"`
}

RequestUserInfo /v1/get으로 들어오는 요청 타입

type ResponseClientUpdate

type ResponseClientUpdate struct {
	Token string `json:"token"`
}

ResponseClientUpdate /v1/client PUT 요청에 대한 응답

type ResponseUserInfo

type ResponseUserInfo struct {
	ID         int    `json:"_id"`
	UserID     string `json:"userId"`
	UserName   string `json:"userName"`
	UserNumber int    `json:"userNumber"`
}

ResponseUserInfo /v1/get으로 들어온 요청에 대한 응답

Jump to

Keyboard shortcuts

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