ready for rpa
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package company
|
||||
|
||||
import (
|
||||
"bordrobot/lib/db"
|
||||
"bordrobot/lib/run"
|
||||
)
|
||||
|
||||
type Company struct {
|
||||
@@ -16,6 +16,6 @@ func (c *Company) Create() error {
|
||||
insert into company (name, member_number, username, password)
|
||||
VALUES (:name, :member_number, :username, :password)
|
||||
`
|
||||
_, err := db.DB.NamedExec(sq, &c)
|
||||
_, err := run.DB.NamedExec(sq, &c)
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user