@@ -545,6 +545,17 @@ export class ContestEditHandler extends Handler {
545545 @param ( 'checkinEndAtDate' , Types . Date )
546546 @param ( 'checkinEndAtTime' , Types . Time )
547547 @param ( 'title' , Types . Title )
548+ @param ( 'languageSubject' , Types . String , true )
549+ @param ( 'category' , Types . String , true )
550+ @param ( 'organizer' , Types . String , true )
551+ @param ( 'stage' , Types . String , true )
552+ @param ( 'totalScore' , Types . Float , true )
553+ @param ( 'problemCategoryConfig' , Types . String , true )
554+ @param ( 'judgementPrice' , Types . Float , true )
555+ @param ( 'attendPrice' , Types . Float , true )
556+ @param ( 'evalutionPrice' , Types . Float , true )
557+ @param ( 'contestMode' , Types . String , true )
558+ @param ( 'hasMonitor' , Types . Boolean , true )
548559 @param ( 'content' , Types . Content )
549560 @param ( 'rule' , Types . Range ( Object . keys ( contest . RULES ) . filter ( ( i ) => ! contest . RULES [ i ] . hidden ) ) )
550561 @param ( 'pids' , Types . Content )
@@ -570,6 +581,17 @@ export class ContestEditHandler extends Handler {
570581 checkinEndAtDate : string ,
571582 checkinEndAtTime : string ,
572583 title : string ,
584+ languageSubject : string ,
585+ category : string ,
586+ organizer : string ,
587+ stage : string ,
588+ totalScore : number ,
589+ problemCategoryConfig : string ,
590+ judgementPrice : number ,
591+ attendPrice : number ,
592+ evalutionPrice : number ,
593+ contestMode : string ,
594+ hasMonitor : boolean = false ,
573595 content : string ,
574596 rule : string ,
575597 _pids : string ,
@@ -613,6 +635,17 @@ export class ContestEditHandler extends Handler {
613635 if ( tid ) {
614636 await contest . edit ( domainId , tid , {
615637 title,
638+ languageSubject,
639+ category,
640+ organizer,
641+ stage,
642+ totalScore,
643+ problemCategoryConfig,
644+ judgementPrice,
645+ attendPrice,
646+ evalutionPrice,
647+ contestMode,
648+ hasMonitor,
616649 content,
617650 rule,
618651 beginAt,
@@ -637,6 +670,17 @@ export class ContestEditHandler extends Handler {
637670 }
638671 } else {
639672 tid = await contest . add ( domainId , title , content , this . user . _id , rule , beginAt , endAt , pids , rated , {
673+ languageSubject,
674+ category,
675+ organizer,
676+ stage,
677+ totalScore,
678+ problemCategoryConfig,
679+ judgementPrice,
680+ attendPrice,
681+ evalutionPrice,
682+ contestMode,
683+ hasMonitor,
640684 duration : contestDuration ,
641685 tag,
642686 checkinBeginAt,
0 commit comments