1
0
mirror of https://github.com/fumiama/emozi.git synced 2026-06-05 00:32:48 +08:00

feat(lookup): add more apis

This commit is contained in:
源文雨
2024-02-19 16:54:03 +09:00
parent e7ccfbad7a
commit 7025b9b1df

View File

@@ -27,7 +27,7 @@ func (c *Coder) LookupRadical(r rune) string {
}
// GetCharByID ...
func (c *Coder) GetCharByID(id int64) (w, r rune, p, f string, err error) {
func (c *Coder) GetCharByID(id int64) (w, r rune, p, f, desc string, err error) {
x := 字表{}
q := "WHERE ID=" + strconv.FormatInt(id, 10)
c.mu.RLock()
@@ -43,6 +43,7 @@ func (c *Coder) GetCharByID(id int64) (w, r rune, p, f string, err error) {
r = x.R
p = x.P
f = x.F
desc = x.String()
return
}