Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
// find user
func (s *LogInService) FindUser(dest interface{}, id string, args ...string) (err error) { args_str := strings.Join(args, ",") esql := fmt.Sprintf("select %v from %v where id=%v", args_str, s.table_name, id) // res = new(User) err = s.dbcon.Get(dest, esql) //debugline fmt.Println("query>> ", esql) return }
Types ¶
type LogInService ¶
type LogInService struct { *database.DbController // contains filtered or unexported fields }
func (*LogInService) CreateUser ¶
func (s *LogInService) CreateUser(args map[string]string) (err error)
create user
Click to show internal directories.
Click to hide internal directories.