Compare commits
No commits in common. "420d652e6b6a4e2d12d8a85e296cd458507ea478" and "6545dc72ac2bb3bddaaf43422262c93e0c012b69" have entirely different histories.
420d652e6b
...
6545dc72ac
|
|
@ -1,7 +1,6 @@
|
||||||
package service
|
package service
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"regexp"
|
"regexp"
|
||||||
"videoplayer/dao"
|
"videoplayer/dao"
|
||||||
"videoplayer/proto"
|
"videoplayer/proto"
|
||||||
|
|
@ -45,7 +44,6 @@ func GetUserByNameLike(name string) []proto.User {
|
||||||
|
|
||||||
func UpdateUser(user_id int, req proto.UpdateUserInfoReq) (int, error) {
|
func UpdateUser(user_id int, req proto.UpdateUserInfoReq) (int, error) {
|
||||||
cur_user := dao.FindUserByID2(user_id)
|
cur_user := dao.FindUserByID2(user_id)
|
||||||
fmt.Println("cur_user:", cur_user, "req:", req)
|
|
||||||
if user_id == req.ID {
|
if user_id == req.ID {
|
||||||
dao.UpdateUserByID2(user_id, req)
|
dao.UpdateUserByID2(user_id, req)
|
||||||
return user_id, nil
|
return user_id, nil
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue