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