use super::MessageContext;
use trigger_codegen::handlers;

#[handlers]
mod training_module {
    use tracing::info;

    pub async fn on_start_training(
        _context: &mut MessageContext<'_, '_>,
        request: StartTrainingCsReq,
    ) -> StartTrainingScRsp {
        info!("{request:?}");

        StartTrainingScRsp {
            retcode: 0,
            training_uid: 1000000,
        }
    }
}
