diff --git a/App/Controllers/DocComment.php b/App/Controllers/DocComment.php new file mode 100644 index 0000000..3b19612 --- /dev/null +++ b/App/Controllers/DocComment.php @@ -0,0 +1,33 @@ +input); + + $userdate = date("Y-m-d H:i:s",time()); + $this->input->created_date = $userdate; + $this->input->update_date = $userdate; + if( strlen($this->input->user_pwd ) < 6){ + $this->JsonResp(201,null,"password empty"); + return; + } + if(!$this->is_password($this->input->user_pwd)){ + $this->JsonResp(201,null,"password illegal"); + return; + } + $all = $user->InsertObject($this->input); + $this->JsonResp(200,$all,"OK"); + } +} \ No newline at end of file diff --git a/App/Models/DocComment.php b/App/Models/DocComment.php new file mode 100644 index 0000000..3a56488 --- /dev/null +++ b/App/Models/DocComment.php @@ -0,0 +1,12 @@ +