Versions in this module Expand all Collapse all v1 v1.0.0 Dec 31, 2021 Changes in this version + type Model struct + DB func() *gorm.DB + Table string + func (m *Model) Count(where []interface{}) int64 + func (m *Model) Delete(where []interface{}) error + func (m *Model) Find(dest interface{}, where []interface{}, fields, order string, offset, limit int) + func (m *Model) FindOne(dest interface{}, where []interface{}, fields, order string) + func (m *Model) Save(value interface{}, id ...int) (interface{}, error) + func (m *Model) Update(where []interface{}, value interface{}) error + type Redis struct + Client func() *redis.Client + func (r *Redis) CacheWithString(key string, output interface{}, expiration time.Duration, ...) error + func (r *Redis) DeleteCache(key ...string) (int64, error) + func (r *Redis) HashGetAll(key string) (result []interface{}) + func (r *Redis) HashMultiDelete(key string, fields ...string) error + func (r *Redis) HashMultiSet(key string, data map[string]interface{}) error + func (r *Redis) NoDataExpiration() time.Duration + type Service struct + func (s *Service) Construct(sr interface{}, ctx context.Context, args map[string]interface{}, ...) + func (s *Service) Finish(data interface{}) error + func (s *Service) GetArgs(key string, defaultValue ...interface{}) interface{} + func (s *Service) GetInt(key string, defaultValue ...int) int + func (s *Service) GetInt64(key string, defaultValue ...int64) int64 + func (s *Service) GetString(key string, defaultValue ...string) string + func (s *Service) Json(args ...interface{}) error + func (s *Service) LoggedUserData(key ...string) map[string]interface{} + func (s *Service) LoggedUserId(key ...string) int + func (s *Service) LoginCheck(key ...string) bool + func (s *Service) Record(r define.Record) + func (s *Service) SignCheck() bool