contact

package
v0.26.3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count

func Count(data *CountParam) (int64, error)

func Create

func Create(data *CreateParam) (uint, error)

func Delete

func Delete(data *DeleteParam) error

func Fetch

func Fetch(data *FetchParam) (*tables.Contact, error)

func FetchAll

func FetchAll(data *FetchAllParam) ([]*tables.Contact, error)

func Replace

func Replace(data *ReplaceParam) error

func Update

func Update(data *UpdateParam) error

Types

type CountParam

type CountParam = FetchAllParam

type CreateParam

type CreateParam struct {
	Wxid     string `json:"wxid" binding:"required"`
	Code     string `json:"code"`
	Remark   string `json:"remark"`
	Name     string `json:"name"`
	Country  string `json:"country"`
	Province string `json:"province"`
	City     string `json:"city"`
	Gender   int32  `json:"gender"`
}

type DeleteParam

type DeleteParam = FetchParam

type FetchAllParam

type FetchAllParam struct {
	Gender int32 `json:"gender"`
}

type FetchParam

type FetchParam struct {
	Wxid string `json:"wxid" binding:"required"`
}

type ReplaceParam

type ReplaceParam = CreateParam

type UpdateParam

type UpdateParam = CreateParam

Jump to

Keyboard shortcuts

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