model

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PlatformChat33Pro = "Chat33Pro"
	Size              = 20
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Claims

type Claims struct {
	Username string `json:"username"`
	jwt.StandardClaims
}

type Description

type Description []string

func ConvertDescription

func ConvertDescription(str string) (Description, error)

func (*Description) ToString

func (desc *Description) ToString() string

type GetTokenRequest

type GetTokenRequest struct {
	UserName string `form:"userName" json:"userName"`
	Password string `form:"password" json:"password"`
}

type GetTokenResponse

type GetTokenResponse struct {
	UserInfo UserInfoResponse `json:"userInfo"`
}

type GetVersionListRequest

type GetVersionListRequest struct {
	Page       int64  `json:"page"`
	Platform   string `json:"platform"`
	DeviceType string `json:"deviceType"`
}

type GetVersionListResponse

type GetVersionListResponse struct {
	TotalElements int64         `json:"totalElements"`
	TotalPages    int64         `json:"totalPages"`
	VersionList   []VersionForm `json:"versionList"`
}

type UserInfo

type UserInfo struct {
	UserName string `json:"userName"`
	Password string `json:"password"`
}

type UserInfoResponse

type UserInfoResponse struct {
	UserName string `json:"userName"`
	Token    string `json:"token"`
}

type VersionChangeStatusRequest

type VersionChangeStatusRequest struct {
	Id      int64  `json:"id"`
	OpeUser string `json:"opeUser"`
}

type VersionChangeStatusResponse

type VersionChangeStatusResponse struct {
	VersionList []VersionForm `json:"versionList"`
}

type VersionCheckAndUpdateRequest

type VersionCheckAndUpdateRequest struct {
	VersionCode int64  `form:"versionCode" json:"versionCode"`
	DeviceType  string `json:"deviceType"`
}

type VersionCheckAndUpdateResponse

type VersionCheckAndUpdateResponse struct {
	VersionForm
}

type VersionCreateRequest

type VersionCreateRequest struct {
	Platform    string   `json:"platform"`
	Description []string `json:"description"`
	Force       bool     `json:"force"`
	Url         string   `json:"url"`
	VersionCode int64    `json:"versionCode"`
	VersionName string   `json:"versionName"`
	DeviceType  string   `json:"deviceType"`
	OpeUser     string   `json:"opeUser"`
	Md5         string   `json:"md5"`
	Size        int64    `json:"size"`
}

type VersionCreateResponse

type VersionCreateResponse struct {
	Version VersionForm `json:"version"`
}

type VersionForm

type VersionForm struct {
	Id          int64       `json:"id"`
	Platform    string      `json:"platform"`
	Status      int32       `json:"status"`
	DeviceType  string      `json:"deviceType"`
	VersionName string      `json:"versionName"`
	VersionCode int64       `json:"versionCode"`
	Url         string      `json:"url"`
	Force       bool        `json:"force"`
	Description Description `json:"description"`
	OpeUser     string      `json:"opeUser"`
	Md5         string      `json:"md5"`
	Size        int64       `json:"size"`
	UpdateTime  int64       `json:"updateTime"`
	CreateTime  int64       `json:"createTime"`
}

func ConvertVersionForm

func ConvertVersionForm(record *map[string]string) (*VersionForm, error)

type VersionUpdateRequest

type VersionUpdateRequest struct {
	Description []string `json:"description"`
	Force       bool     `json:"force"`
	Url         string   `json:"url"`
	VersionCode int64    `json:"versionCode"`
	VersionName string   `json:"versionName"`
	Id          int64    `json:"id"`
	OpeUser     string   `json:"opeUser"`
	Md5         string   `json:"md5"`
	Size        int64    `json:"size"`
}

type VersionUpdateResponse

type VersionUpdateResponse struct {
	Version VersionForm `json:"version"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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