Ejemplo n.º 1
0
 public NoteAPIController(AttachService attachService
                          , TokenSerivce tokenSerivce
                          , NoteFileService noteFileService
                          , UserService userService
                          , ConfigFileService configFileService
                          , IHttpContextAccessor accessor,
                          NoteService noteService,
                          NoteContentService noteContentService,
                          NotebookService notebookService,
                          NoteRepositoryService noteRepositoryService,
                          TrashService trashService,
                          EPassService ePass,
                          GMService gMService,
                          DataSignService dataSignService
                          ) :
     base(attachService, tokenSerivce, noteFileService, userService, configFileService, accessor)
 {
     this.attachService         = attachService;
     this.noteService           = noteService;
     this.tokenSerivce          = tokenSerivce;
     this.noteContentService    = noteContentService;
     this.trashService          = trashService;
     this.accessor              = accessor;
     this.notebookService       = notebookService;
     this.noteRepositoryService = noteRepositoryService;
     this.ePassService          = ePass;
     this.dataSignService       = dataSignService;
     this.gMService             = gMService;
 }
Ejemplo n.º 2
0
 public CommonController(AttachService attachService
                         , TokenSerivce tokenSerivce
                         , NoteFileService noteFileService
                         , UserService userService
                         , ConfigFileService configFileService
                         , IHttpContextAccessor accessor,
                         NoteService noteService,
                         NoteContentService noteContentService,
                         NotebookService notebookService,
                         NoteRepositoryService noteRepositoryService,
                         TrashService trashService
                         ) :
     base(attachService, tokenSerivce, noteFileService, userService, configFileService, accessor)
 {
     this.attachService         = attachService;
     this.noteService           = noteService;
     this.tokenSerivce          = tokenSerivce;
     this.noteContentService    = noteContentService;
     this.trashService          = trashService;
     this.accessor              = accessor;
     this.notebookService       = notebookService;
     this.noteRepositoryService = noteRepositoryService;
 }
Ejemplo n.º 3
0
 public NoteController(AttachService attachService
                       , TokenSerivce tokenSerivce
                       , NoteFileService noteFileService
                       , UserService userService
                       , ShareService shareService
                       , ConfigFileService configFileService
                       , IWebHostEnvironment env
                       , TagService tagService
                       , TrashService trashService
                       , IHttpContextAccessor accessor
                       , NotebookService notebookService
                       , NoteService noteService
                       , NoteContentService noteContentService
                       ) :
     base(attachService, tokenSerivce, noteFileService, userService, configFileService, accessor)
 {
     this.notebookService    = notebookService;
     this.noteService        = noteService;
     this.noteContentService = noteContentService;
     this.env          = env;
     this.tagService   = tagService;
     this.trashService = trashService;
 }
Ejemplo n.º 4
0
        //todo:删除trash
        public JsonResult DeleteTrash(string noteId, int usn, string token)
        {
            bool result = TrashService.DeleteTrashApi(MyConvert.HexToLong(noteId), getUserIdByToken(token), usn, out string msg, out int afterUsn);

            if (result)
            {
                return(Json(new ReUpdate()
                {
                    Ok = true,
                    Msg = "",
                    Usn = afterUsn
                }, MyJsonConvert.GetOptions()));
            }
            else
            {
                return(Json(new ReUpdate()
                {
                    Ok = false,
                    Msg = msg,
                    Usn = afterUsn
                }, MyJsonConvert.GetOptions()));
            }
        }
Ejemplo n.º 5
0
 public void InitService(TrashType trashType)
 {
     _trashService = new TrashService(trashType, this);
 }