profile

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PasswordModifyStepIDs = map[string]StepID{
		`init`:   StepInit,
		`send`:   StepSend,
		`verify`: StepVerifyAndModify,
	}
	PasswordModifySteps = []string{
		`init`,
		`send`,
		`verify`,
	}
)

Functions

func Binding

func Binding(ctx echo.Context) (err error)

func BindingSendingInterval

func BindingSendingInterval(sendMethod string) int64

BindingSendingInterval 间隔时间(秒)

func BindingSendingMaxPerDay

func BindingSendingMaxPerDay(sendMethod string) int64

BindingSendingMaxPerDay 每人每天发送上限

func BindingSendingRemainCount

func BindingSendingRemainCount(ctx echo.Context, cust *modelCustomer.Customer, sendMethod string) int64

BindingSendingRemainCount 今天剩余可发几次

func Comments

func Comments(ctx echo.Context) error

Comments 我的评论 TODO: 暂不实现

func EmailSend

func EmailSend(ctx echo.Context, m *modelCustomer.Customer, purpose string, titleAndMessage ...string) error

EmailSend 发送验证码邮件

func EmailVerify

func EmailVerify(ctx echo.Context, m *modelCustomer.Customer, purpose string) error

EmailVerify 验证邮件

func Favorites

func Favorites(ctx echo.Context) error

Favorites 我的收藏 TODO: 暂不实现

func Follow

func Follow(ctx echo.Context) error

Follow 关注/取关 操作

func Followers

func Followers(ctx echo.Context) error

Followers 关注我的

func FollowersBy

func FollowersBy(ctx echo.Context, customerID uint64) error

func Following

func Following(ctx echo.Context) error

Following 我关注的

func FollowingBy

func FollowingBy(ctx echo.Context, customerID uint64) error

func IsFollowed

func IsFollowed(ctx echo.Context) error

IsFollowed 是否关注过

func Likes

func Likes(ctx echo.Context) error

Likes 我的喜欢(分为喜欢的产品、新闻、评论) TODO: 暂不实现

func MobileSend

func MobileSend(ctx echo.Context, m *modelCustomer.Customer, purpose string, messages ...string) error

MobileSend 发送验证码短信

func MobileVerify

func MobileVerify(ctx echo.Context, m *modelCustomer.Customer, purpose string) error

MobileVerify 验证短信

func Password

func Password(c echo.Context) error

Password 修改密码

func Profile

func Profile(c echo.Context) error

func Settings

func Settings(ctx echo.Context) error

func Unfollow

func Unfollow(ctx echo.Context) error

Unfollow 取消关注 操作

func VerifyCodeLength

func VerifyCodeLength() uint

VerifyCodeLength 验证码长度

Types

type StepID

type StepID int
const (
	StepInit StepID = iota
	StepSend
	StepVerifyAndModify
)

func (StepID) Int

func (s StepID) Int() int

func (StepID) String

func (s StepID) String() string

Jump to

Keyboard shortcuts

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