package Ġonline . sen p ai . we bo . controller Ċ Ċ import Ġio . mic ronaut . http . annotation . Controller Ċ import Ġio . mic ronaut . http . annotation . Get Ċ import Ġio . mic ronaut . http . annotation . PathVariable Ċ import Ġio . mic ronaut . http . annotation . Query Value Ċ import Ġio . mic ronaut . security . annotation . Sec ured Ċ import Ġio . mic ronaut . security . rules . Security Rule Ċ import Ġio . mic ronaut . validation . Validated Ċ import Ġjak arta . inject . Inject Ċ import Ġonline . sen p ai . we bo . Ev olve Character Ċ import Ġonline . sen p ai . we bo . dto . ev olve . Ev olve Dialog ue Dto Ċ import Ġonline . sen p ai . we bo . service . Ev olve Service Ċ import Ġreactor . core . publisher . Flux Ċ import Ġreactor . core . publisher . Mono Ċ Ċ @ Validated Ċ @ Sec ured ( Security Rule . IS _ AN ONY MO US ) Ċ @ Controller ("/ api / ev olve ") Ċ class ĠEv olve Controller Ġ@ Inject Ġconstructor ( ĊĠĠĠ Ġprivate Ġval Ġservice : ĠEv olve Service , Ċ ) Ġ{ ĊĠĠĠ Ġ@ Get ("/ meta / dialog ues / total /{ character }") ĊĠĠĠ Ġfun Ġcount Dialog ues By Character ( ĊĠĠĠĠĠĠĠ Ġ@ PathVariable Ġcharacter : ĠEv olve Character ĊĠĠĠ Ġ): ĠMono < Number > Ġ= ĊĠĠĠĠĠĠĠ Ġservice . count By Character ( character ) ĊĊĠĠĠ Ġ@ Get ("/ dialog ues /{ character }") ĊĠĠĠ Ġfun Ġfind Tw enty Dialog ues By Character ( ĊĠĠĠĠĠĠĠ Ġ@ PathVariable Ġcharacter : ĠEv olve Character , ĊĠĠĠĠĠĠĠ Ġ@ Query Value ( defaultValue Ġ= Ġ" 0 ") Ġoffset : ĠLong ĊĠĠĠ Ġ): ĠFlux < Ev olve Dialog ue Dto > Ġ= ĊĠĠĠĠĠĠĠ Ġservice . find Tw enty Dialog ues By Character ( character , Ġoffset ) Ċ } Ċ