add resolve service prototype.
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
package commands
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"git.aiterp.net/lucifer3/server/internal/formattools"
|
||||
)
|
||||
|
||||
type SetName struct {
|
||||
ID string
|
||||
Name string
|
||||
}
|
||||
|
||||
func (c SetName) CommandDescription() string {
|
||||
return fmt.Sprintf("SetName(%v, %s)", c.ID, c.Name)
|
||||
}
|
||||
|
||||
type AddTag struct {
|
||||
IDs []string
|
||||
Tag string
|
||||
}
|
||||
|
||||
func (c AddTag) CommandDescription() string {
|
||||
return fmt.Sprintf("AddTag(%v, %s)", formattools.CompactIDList(c.IDs), c.Tag)
|
||||
}
|
||||
|
||||
type RemoveTag struct {
|
||||
IDs []string
|
||||
Tag string
|
||||
}
|
||||
|
||||
func (c RemoveTag) CommandDescription() string {
|
||||
return fmt.Sprintf("RemoveTag(%v, %s)", formattools.CompactIDList(c.IDs), c.Tag)
|
||||
}
|
||||
Reference in New Issue
Block a user