Finish db update sync.

This commit is contained in:
Yang Luo
2021-05-09 15:44:12 +08:00
parent e2f6efd1ab
commit 6e5aa2bc40
4 changed files with 88 additions and 9 deletions

View File

@ -19,11 +19,21 @@ import (
"encoding/hex"
"errors"
"fmt"
"strconv"
"strings"
"github.com/google/uuid"
)
func ParseInt(s string) int {
i, err := strconv.Atoi(s)
if err != nil {
panic(err)
}
return i
}
func GetOwnerAndNameFromId(id string) (string, string) {
tokens := strings.Split(id, "/")
if len(tokens) != 2 {