Versions in this module Expand all Collapse all v0 v0.1.6 Oct 9, 2019 v0.1.5 Oct 9, 2019 Changes in this version + const AgainGetStopTime + const CacheIDPrefix + const KeyMaxExpire + const SN + const SexMan + const SexOther + const SexWoman + func CacheDel(ctx context.Context, id int64) + func CacheGet(ctx context.Context, id int64) (map[string]string, error) + func CacheSet(ctx context.Context, id int64) + func Run() + type Server struct + func (s *Server) UserAdd(ctx context.Context, in *pb.UserBase) (out *pb.UserBase, outerr error) + func (s *Server) UserDelete(ctx context.Context, in *pb.UserID) (out *pb.UserID, outerr error) + func (s *Server) UserQueryAll(ctx context.Context, in *pb.UserAllOption) (*pb.UserAll, error) + func (s *Server) UserQueryOne(ctx context.Context, in *pb.UserID) (out *pb.UserBase, outerr error) + func (s *Server) UserUpdate(ctx context.Context, in *pb.UserBase) (out *pb.UserBase, outerr error) + type User struct + ID int64 + Iphone string + IsUsable int32 + Page utils.Page + Password string + Sex int32 + UserName string + func (m *User) Add(ctx context.Context) error + func (m *User) Delete(ctx context.Context) error + func (m *User) QueryAll(ctx context.Context) ([]*User, utils.Page, error) + func (m *User) QueryOne(ctx context.Context) error + func (m *User) Update(ctx context.Context) error