Documentation ¶
Overview ¶
Copyright 2016 Wenhui Shen <www.webx.top>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2016 Wenhui Shen <www.webx.top>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2016 Wenhui Shen <www.webx.top>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2016 Wenhui Shen <www.webx.top>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2016 Wenhui Shen <www.webx.top>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2016 Wenhui Shen <www.webx.top>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2016 Wenhui Shen <www.webx.top>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2016 Wenhui Shen <www.webx.top>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2016 Wenhui Shen <www.webx.top>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2016 Wenhui Shen <www.webx.top>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2016 Wenhui Shen <www.webx.top>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func EditorContent(ctx *X.Context, etype string, editorContent string) (string, string)
- type Album
- func (a *Album) Add(m *D.Album) (affected int64, err error)
- func (a *Album) Delete(id int) (affected int64, err error)
- func (a *Album) Edit(id int, m *D.Album) (affected int64, err error)
- func (a *Album) Get(id int) (m *D.Album, has bool, err error)
- func (a *Album) List(s *Select) (countFn func() int64, m []*D.Album, err error)
- type Attathment
- func (a *Attathment) Add(m *D.Attathment) (affected int64, err error)
- func (a *Attathment) Delete(id int) (affected int64, err error)
- func (a *Attathment) Edit(id int, m *D.Attathment) (affected int64, err error)
- func (a *Attathment) Get(id int) (m *D.Attathment, has bool, err error)
- func (a *Attathment) List(s *Select) (countFn func() int64, m []*D.Attathment, err error)
- type Category
- func (a *Category) Add(m *D.Category) (affected int64, err error)
- func (a *Category) Delete(id int) (affected int64, err error)
- func (a *Category) Dir(pid int) (rs []D.Category)
- func (a *Category) Edit(id int, m *D.Category) (affected int64, err error)
- func (a *Category) Get(id int) (m *D.Category, has bool, err error)
- func (a *Category) List(s *Select) (countFn func() int64, m []*D.Category, err error)
- type Comment
- func (a *Comment) Add(m *D.Comment) (affected int64, err error)
- func (a *Comment) Delete(id int64) (affected int64, err error)
- func (a *Comment) Edit(id int64, m *D.Comment) (affected int64, err error)
- func (a *Comment) EditorContent(m *D.Comment) (otherContent string)
- func (a *Comment) Get(id int64) (m *D.Comment, has bool, err error)
- func (a *Comment) GetOtherContent(id int64) (m *D.Ocontent, has bool, err error)
- func (a *Comment) List(s *Select) (countFn func() int64, m []*D.Comment, err error)
- func (a *Comment) ListWithPost(s *Select) (countFn func() int64, m []*CommentWithPost, err error)
- type CommentWithPost
- type Config
- func (a *Config) Add(m *D.Config) (affected int64, err error)
- func (a *Config) Delete(id int) (affected int64, err error)
- func (a *Config) Edit(id int, m *D.Config) (affected int64, err error)
- func (a *Config) Get(id int) (m *D.Config, has bool, err error)
- func (a *Config) List(s *Select) (countFn func() int64, m []*D.Config, err error)
- type Link
- func (a *Link) Add(m *D.Link) (affected int64, err error)
- func (a *Link) Delete(id int) (affected int64, err error)
- func (a *Link) Edit(id int, m *D.Link) (affected int64, err error)
- func (a *Link) Get(id int) (m *D.Link, has bool, err error)
- func (a *Link) List(s *Select) (countFn func() int64, m []*D.Link, err error)
- type M
- type Ocontent
- func (a *Ocontent) Add(m *D.Ocontent) (affected int64, err error)
- func (a *Ocontent) DelByMaster(rid int64, rtype string) (affected int64, err error)
- func (a *Ocontent) Edit(id int64, m *D.Ocontent) (affected int64, err error)
- func (a *Ocontent) Get(id int64) (m *D.Ocontent, has bool, err error)
- func (a *Ocontent) GetByMaster(rid int64, rtype string) (m *D.Ocontent, has bool, err error)
- type Post
- func (a *Post) Add(m *D.Post) (affected int64, err error)
- func (a *Post) Delete(id int) (affected int64, err error)
- func (a *Post) Edit(id int, m *D.Post) (affected int64, err error)
- func (a *Post) EditorContent(m *D.Post) (otherContent string)
- func (a *Post) Get(id int) (m *D.Post, has bool, err error)
- func (a *Post) GetOtherContent(id int) (m *D.Ocontent, has bool, err error)
- func (a *Post) List(s *Select) (countFn func() int64, m []*D.Post, err error)
- type Tag
- func (a *Tag) Add(m *D.Tag) (affected int64, err error)
- func (a *Tag) AddNotExists(uid int, rcType string, tags ...string) (m []*D.Tag, err error)
- func (a *Tag) DelExists(rcType string, tags ...string) (err error)
- func (a *Tag) Delete(id int) (affected int64, err error)
- func (a *Tag) Edit(id int, m *D.Tag) (affected int64, err error)
- func (a *Tag) Get(id int) (m *D.Tag, has bool, err error)
- func (a *Tag) List(s *Select) (countFn func() int64, m []*D.Tag, err error)
- func (a *Tag) UpdateTimes(id int, n int) (affected int64, err error)
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Attathment ¶
type Attathment struct {
*M
}
func NewAttathment ¶
func NewAttathment(ctx *X.Context) *Attathment
func (*Attathment) Add ¶
func (a *Attathment) Add(m *D.Attathment) (affected int64, err error)
func (*Attathment) Edit ¶
func (a *Attathment) Edit(id int, m *D.Attathment) (affected int64, err error)
func (*Attathment) Get ¶
func (a *Attathment) Get(id int) (m *D.Attathment, has bool, err error)
func (*Attathment) List ¶
func (a *Attathment) List(s *Select) (countFn func() int64, m []*D.Attathment, err error)
type Comment ¶
func NewComment ¶
func (*Comment) GetOtherContent ¶
func (*Comment) ListWithPost ¶
func (a *Comment) ListWithPost(s *Select) (countFn func() int64, m []*CommentWithPost, err error)
type CommentWithPost ¶
type Ocontent ¶
type Ocontent struct {
*M
}