test

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	/*
		@Get /get/{token}?page={page}&limit={limit}
	*/
	GetItem(token int, page int, limit int) (*http.Response, error)

	/*
		@Post /upload
		@Body multipart
		@Header(Content-Type) {contentType}
		@Cookie(ga) {cookie}
		@File(avatar) /var/log/{path}
	*/
	UploadItem(path string, contentType string, cookie string, video io.Reader) (*http.Response, error)

	/*
		@Put /change/{id}
		@Body json
		@Cookie(ga) {cookie}
		@Result json
	*/
	UpdateItem(id int, cookie string, data *time.Time, apiKey string) (result *UploadResult, statusCode int, err error)

	/*
		@Post /stat/{id}
		@SingleBody json
	*/
	StatItem(id int, body *StatBody) (*http.Response, error)

	/*
		@Post /stat/{id}
		@SingleBody json
	*/
	StatByReader(id int, body io.Reader) (*http.Response, error)

	/*
		@Post
		@Body form
		@Param(name) {firstName}.Lee
	*/
	PostInfo(id int, firstName string) (*http.Request, error)
}

@Base {scheme}://box.zjuqsc.com/item @Header(User-Agent) {userAgent} @Cookie(ga) {ga} @Cookie(qsc_session) secure_7y7y1n570y

type StatBody

type StatBody struct {
}

type UploadResult

type UploadResult struct {
}

Jump to

Keyboard shortcuts

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