userCard

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package userCard @Author: asus @Description: $ @File: userCard @Data: 2022/4/116:46

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAddressList added in v0.7.0

func GetAddressList(userID uint32) *proto.UserCardRes

func GetUserCard

func GetUserCard(UserID uint32) *proto.UserCardRes

func InstallAddress added in v0.7.0

func InstallAddress(UserID uint32, data string)

func UpAddress added in v0.7.0

func UpAddress(UserID uint32, data []string)

func UpdateUserCard

func UpdateUserCard(UserID uint32, data map[string]interface{})

Types

type UserCard

type UserCard struct {
	Gender    bool   `json:"gender"`     // 性别
	RealName  string `json:"real_name"`  // 真实姓名
	UserImage string `json:"user_image"` // 用户头像
	CardID    string `json:"card_id"`    // 身份证号码
	CardType  string `json:"card_type"`  // 证件类型: 第一代15位  第二代18位, 考虑老人情况
	StartAt   uint32 `json:"start_at"`   // 有效期:开始时间
	EndAt     uint32 `json:"end_at"`     // 有效期:结束时间  0为长期有效
	CardCode  string `json:"card_code"`  // 籍贯代码
	AreaCode  string `json:"area_code"`  // 行政区域代码
	Address   string `json:"address"`    // 常用地址
	Email     string `json:"email"`      // 邮箱
}

Jump to

Keyboard shortcuts

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