From b64d76f1ddf3a474770a0e90761f2268f2a9e483 Mon Sep 17 00:00:00 2001 From: IceCream Date: Tue, 7 Jul 2020 09:30:13 +0800 Subject: [PATCH] readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 51f8da3..8817252 100644 --- a/README.md +++ b/README.md @@ -35,9 +35,9 @@ public class GroupMenu{ @Inject private YuQ yuq; - @Action("ban") - public String ban(long group, @PathVar(value = 1,type = PathVar.Type.Long)long ban, @PathVar(value = 2,type = PathVar.Type.Integer)int time){ - yuq.getGroups().get(group).get(ban).ban(time); + @Action("ban {ban} {time}") + public String ban(Member ban, int time){ + ban.ban(time); return "好的!"; } }