types

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Code generated by goctl. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddUserAssetReq

type AddUserAssetReq struct {
	CoinName string `json:"coin_name"`
	Qty      string `json:"qty"`
}

type AssetInfo

type AssetInfo struct {
	Id           int64  `json:"id"`            //id
	CoinName     string `json:"coin_name"`     //币种名称
	CoinID       int32  `json:"coin_id"`       //币种id
	AvailableQty string `json:"available_qty"` //可用数量
	FrozenQty    string `json:"frozen_qty"`    //冻结数量
}

type Empty

type Empty struct {
}

type GetCaptchaResp

type GetCaptchaResp struct {
	CaptchaPic    string `json:"captcha_pic"`
	CaptchaId     string `json:"captcha_id"`
	CaptchaLength int32  `json:"captch_length"`
}

type GetUserAssetListResp

type GetUserAssetListResp struct {
	AssetList []*AssetInfo `json:"asset_list"`
}

type LoginReq

type LoginReq struct {
	Username  string `json:"username"`
	Password  string `json:"password"`
	Captcha   string `json:"captcha"`
	CaptchaId string `json:"captcha_id"`
}

type LoginResp

type LoginResp struct {
	Uid        int64  `json:"uid"`         //uid
	Username   string `json:"username"`    //用户名
	Token      string `json:"token"`       //token
	ExpireTime int64  `json:"expire_time"` //到期时间
}

type RegisterReq

type RegisterReq struct {
	Username        string `json:"username"`              //用户名
	Password        string `json:"password"`              //密码
	ConfirmPassword string `json:"confirm_password"`      //确认密码
	PhoneNumber     int64  `json:"phone_number,optional"` //手机号
	Captcha         int64  `json:"captcha,optional"`      //验证
}

type UserInfo

type UserInfo struct {
	Uid      string `json:"uid"`
	Username string `json:"username"`
}

type ValidateTokenReq

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

type ValidateTokenResp

type ValidateTokenResp struct {
	UserInfo *UserInfo `json:"user_info"`
}

Jump to

Keyboard shortcuts

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