poplar

package
v0.0.0-...-7a73484 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

*

  • @Author: Gosin
  • @Date: 2019/12/12 15:38

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgsGetStudentByName

type ArgsGetStudentByName struct {
	Name string // 姓名,必填
}

type ArgsGetStudents

type ArgsGetStudents struct {
	common.Paging
}

type ArgsGetStudentsByAge

type ArgsGetStudentsByAge struct {
	Age int // 年龄,必填
	common.Paging
}

type ReplyStudent

type ReplyStudent struct {
	Name string // 姓名
	Age  int    // 年龄
}

type Student

type Student interface {
	// 根据姓名获取单条数据
	GetStudentByName(ctx context.Context, args *ArgsGetStudentByName, reply *ReplyStudent) error
	// 根据年龄获取数据
	GetStudentsByAge(ctx context.Context, args *ArgsGetStudentsByAge, reply *[]ReplyStudent) error
	// 获取所有数据
	GetStudents(ctx context.Context, args *ArgsGetStudents, reply *[]ReplyStudent) error
}

Jump to

Keyboard shortcuts

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