package com.jiuqi.mobile.nigo.comeclose.manager.app;
import com.jiuqi.mobile.nigo.comeclose.bean.LoadOnGetList;
import com.jiuqi.mobile.nigo.comeclose.bean.app.news.CarTaskNewsBean;
import com.jiuqi.mobile.nigo.comeclose.bean.app.news.News;
import com.jiuqi.mobile.nigo.comeclose.bean.app.news.NoticeNewsBean;
import com.jiuqi.mobile.nigo.comeclose.bean.app.news.SupplyAndDemandTaskNewsBean;
import com.jiuqi.mobile.nigo.comeclose.bean.app.news.WorkTaskNewsBean;
import com.jiuqi.mobile.nigo.comeclose.bean.base.UserBean;
import com.jiuqi.mobile.nigo.comeclose.exception.NiGoException;
import com.jiuqi.mobile.nigo.comeclose.manager.ManagerAnnotation;
import com.jiuqi.mobile.nigo.comeclose.portal.PortalAnnotation;
import com.jiuqi.mobile.nigo.comeclose.portal.PortalMethodAnnctation;
@ManagerAnnotation(implClass = "com.jiuqi.mobile.nigo.biz.app.news.NewsManagerImpl")
@PortalAnnotation(implClass = "com.jiuqi.mobile.nigo.biz.portal.NewsManagerPortalImpl")
public interface INewsManager {
/**
* 发布车辆(农机)信息
*
* @param news
* @throws NiGoException
*/
void publish(CarTaskNewsBean news) throws NiGoException;
/**
* 发布车辆(农机)信息,手机端用
*
* @param news
* @throws NiGoException
*/
void publish(CarTaskNewsBean news, UserBean user) throws NiGoException;
/**
* 删除车辆信息
*
* @param news
* @throws NiGoException
*/
void delCarTaskNews(String guid) throws NiGoException;
/**
* 发布公告、通知消息
*
* @param news
* @throws NiGoException
*/
void publish(NoticeNewsBean news) throws NiGoException;
/**
* 删除公告、通知消息
*
* @param news
* @throws NiGoException
*/
void delNoticeNews(String guid) throws NiGoException;
/**
* 作业信息发布
*
* @param news
* @throws NiGoException
*/
void publish(WorkTaskNewsBean news) throws NiGoException;
/**
* 作业信息发布,手机端用
*
* @param news
* @throws NiGoException
*/
void publish(WorkTaskNewsBean news, UserBean user) throws NiGoException;
/**
* 作业信息删除
*
* @param news
* @throws NiGoException
*/
void delWorkTaskNews(String guid) throws NiGoException;
/**
* 供需信息发布
*
* @param news
* @throws NiGoException
*/
void publish(SupplyAndDemandTaskNewsBean news) throws NiGoException;
/**
* 供需信息发布,手机端用
*
* @param news
* @throws NiGoException
*/
void publish(SupplyAndDemandTaskNewsBean news, UserBean user)
throws NiGoException;
/**
* 供需信息删除
*
* @param news
* @throws NiGoException
*/
void delSupplyAndDemandTaskNews(String guid) throws NiGoException;
/**
* 删除
*
* @param c
* @param guid
*/
void delete(Class<?> c, String guid);
/**
* 查找
*
* @param c
* @param guid
*/
@PortalMethodAnnctation
<T> T find(Class<T> c, String guid);
/**
* 车辆信息查询)(测试阶段方法)
*
* @param newsType
* @param carType
* @param cropType
* @param minPrice
* @param maxPrice
* @param adminAreaCode
* @return
*/
@Deprecated
CarTaskNewsBean[] get(Integer newsType, Integer carType, Integer cropType,
Double minPrice, Double maxPrice, Long adminAreaCode);
/**
* 获取消息列表
*
* @param c
* @param key
* @return
*/
@PortalMethodAnnctation
<T extends News> LoadOnGetList<T> get(Class<T> c, SelectNewsKey key);
/**
* @Title: updateStatus
* @Description: 修改news信息 审核状态
* @param @param guid
* @param @param flag 0=未审核;2=已审核;3=审核未通过
* @param @param reason 审核未通过原因
* @param @param editorInCharge 责任编辑
* @param @return 设定文件
* @return integer 返回类型
* @throws
*/
int updateStatus(String guid, int flag,int isShowInPortal,int isShowInClient, String reason, String editorInCharge);
/**
* 清理过期发布信息
*/
@PortalMethodAnnctation
void clearNews();
/**
*
* @方法描述:后台查询作业发布信息 <br/>
* @项目名称:comeclose<br/>
* @类路径:com.jiuqi.mobile.nigo.comeclose.manager.app.INewsManager.java<br/>
* @版权所有(c):JOIN-CHEER <br/>
* @作者:xuzhe <br/>
* @创建时间:2015-3-18下午3:15:31 <br/>
* @修改时间:<br/>
* @修改备注: <br/>
* @返回类型:LoadOnGetList<br/>
* @param key
* @return
*/
LoadOnGetList<WorkTaskNewsBean> searchWorkTaskBeanAdmin(
com.jiuqi.mobile.nigo.comeclose.manager.master.SelectNewsKey key);
/**
*
* @方法描述:后台查询农机发布信息 <br/>
* @项目名称:comeclose<br/>
* @类路径:com.jiuqi.mobile.nigo.comeclose.manager.app.INewsManager.java<br/>
* @版权所有(c):JOIN-CHEER <br/>
* @作者:xuzhe <br/>
* @创建时间:2015-3-23上午11:24:40 <br/>
* @修改时间:<br/>
* @修改备注: <br/>
* @返回类型:LoadOnGetList<CarTaskNewsBean><br/>
* @param key
* @return
*/
LoadOnGetList<CarTaskNewsBean> searchCarTaskNewsBeanAdmin(
com.jiuqi.mobile.nigo.comeclose.manager.master.SelectNewsKey key);
/**
*
*@方法描述: 后台查询供需发布信息 <br/>
*@项目名称:comeclose<br/>
*@类路径:com.jiuqi.mobile.nigo.comeclose.manager.app.INewsManager.java<br/>
*@版权所有(c):JOIN-CHEER <br/>
*@作者:xuzhe <br/>
*@创建时间:2015-3-23下午3:11:45 <br/>
*@修改时间:<br/>
*@修改备注: <br/>
*@返回类型:LoadOnGetList<SupplyAndDemandTaskNewsBean><br/>
* @param key
* @return
*/
LoadOnGetList<SupplyAndDemandTaskNewsBean> searchSupplyAndDemandTaskNewsBeanAdmin(
com.jiuqi.mobile.nigo.comeclose.manager.master.SelectNewsKey key);
}