rpc

package
v0.0.0-...-997d260 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteReq

type DeleteReq struct {
	g.Meta `path:"/delete" method:"post" auth:"false"`
	Id     uint `json:"id" example:"id"`
}

type ResetPasswordReq

type ResetPasswordReq struct {
	g.Meta      `path:"/resetPassword" method:"post" auth:"false"`
	Id          uint   `json:"id" example:"id"`
	NewPassword string `json:"newPassword" example:"新密码"`
}

type UserController

type UserController struct {
	g.Meta `path:"/user"`
}

func (UserController) Delete

func (UserController) Delete(ctx context.Context, req *DeleteReq) (*res.BlankRes, error)

func (UserController) ResetPassword

func (UserController) ResetPassword(ctx context.Context, req *ResetPasswordReq) (*res.BlankRes, error)

Jump to

Keyboard shortcuts

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